Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

[]int8, []int16, []int32, []int64, []uint8 datatypes #25

Open
krolaw opened this issue Mar 10, 2014 · 5 comments
Open

[]int8, []int16, []int32, []int64, []uint8 datatypes #25

krolaw opened this issue Mar 10, 2014 · 5 comments

Comments

@krolaw
Copy link

krolaw commented Mar 10, 2014

In the data I'm playing with, it's useful to contain groups of non-indexable integers, like storing one graph dataset per record. To handle this situation, I intend to use blobs and then pull out each int with encoding/binary.Varint().

Then I wondered how cool would it be if ql extended the idea of the already supported []uint8 (blobs) and added support for arrays of all data types.

Thoughts? Abuse?

Thanks.

@cznic
Copy link
Owner

cznic commented Mar 10, 2014

I have to think about this idea, but I have little chance to have some free time this week. Please be patient ;-)

@cznic cznic self-assigned this Mar 10, 2014
@cznic
Copy link
Owner

cznic commented Mar 29, 2014

The proposal probably enables some new and nice things, I think. Making it a bit more orthogonal (support all QL types) and extending the {index,slice} operation to support it (ATM works only on strings) is feasible, I guess. Also, it's probably a lot of work...

However, I'm not sure if making QL such an exotic SQL dialect is a good idea or not. You might want to try to convince me by some great usage example(s) ;-)

#MaybeSomeTime

@krolaw
Copy link
Author

krolaw commented Mar 30, 2014

I guess it depends where you want to take QL. Having a native sql engine is handy as it eliminates the CGO cross compilation complexities of SQLite. I was hoping that QL would also be the Go native SQL engine for Go data, but I can appreciate that this may not be the intended direction.

@cznic
Copy link
Owner

cznic commented Mar 31, 2014

Thanks for sharing your thoughts, I appreciate it. I'm, however, still on the fence about this.

@gernest
Copy link
Collaborator

gernest commented May 16, 2017

While the structures looks useful. They are composite structure, It will be totally a waste of resource to store the building materials and the resulting house.

What I am saying, you can easily obtain []ints by collecting the ints from your store. But If we start storing []int reasoning about relationship between your data models will be hard .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants