Tobie Morgan Hitchcock
001d7f866c
Prevent datarace, by not using global variable when decoding
...
Don’t use the global variable ‘skip’ to decode into, as this causes a data race, when decoding keys from inside multiple different goroutines. Instead we now create a new string variable for every decode function, which will be created on the heap and ignored when the function returns.
2017-12-01 00:34:44 +00:00
Tobie Morgan Hitchcock
81497e941d
Add Copy() method to all keys for efficiently duplicating a key
2017-11-16 20:16:51 +00:00
Tobie Morgan Hitchcock
2d5151c8ba
Enable SQL AST string formatting
2017-03-02 10:47:10 +00:00
Tobie Morgan Hitchcock
f56196a150
Update keys package
2017-02-09 20:35:19 +00:00
Tobie Morgan Hitchcock
6d872fbd5d
Change key struct fields to interface{}
...
Most key struct fields are changed to interface{} so that they can be encoded with whatever data is underlying.
2016-05-27 16:29:50 +01:00
Tobie Morgan Hitchcock
7addcd8289
Latest implementation of key encoding+decoding
2016-05-18 00:55:50 +01:00
Tobie Morgan Hitchcock
07139fdc5b
Add database keys package
...
The keys package is used to encode and decode keys. Keys are used for storage in the key:value store.
2016-03-15 21:30:47 +00:00