Commit graph

22 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
918c696eb1 Complete functionality to define scope tokens 2018-09-13 17:34:27 +01:00
Tobie Morgan Hitchcock
84b72e25d2 Don’t use of ClrL, GetL, DelL, PutL methods on KV store
Remove the need to query a particular KV level, and instead use slightly different encoded keys, and use prefix based iteration. This means we can use different KV stores to give the same functionality, without needing to use hierarchical KV stores.
2018-02-09 15:08:27 +00:00
Tobie Morgan Hitchcock
e300e9c423 Improve efficiency of database key encoding and decoding
Make use of the github.com/abcum/bump package to efficiently encode and decode from and to byte slices, whilst at the same time using encoder and decoder pools, instead of creating a new buffer for each encoding / decoding process.
2017-11-16 20:18:42 +00:00
Tobie Morgan Hitchcock
61015c8f7a Add database key for FT foreign tables 2017-11-16 20:16:52 +00:00
Tobie Morgan Hitchcock
8ffdaa6d77 Add database key for EV table events 2017-11-16 20:16:52 +00:00
Tobie Morgan Hitchcock
21cb197d5a Make sure LV database key specifies a table 2017-11-16 20:16:52 +00:00
Tobie Morgan Hitchcock
6a1ec1b2bb Remove unused VW database key 2017-11-16 20:16:52 +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
b957202ee5 Remove unused CK database key 2017-11-16 20:16:24 +00:00
Tobie Morgan Hitchcock
f56196a150 Update keys package 2017-02-09 20:35:19 +00:00
Tobie Morgan Hitchcock
40a52dfbf1 Enable sorting of negative numbers and floats 2016-10-14 07:14:34 +01:00
Tobie Morgan Hitchcock
2f12feeaaa Improve array, and interface encoding / decoding 2016-09-10 00:24:46 +01:00
Tobie Morgan Hitchcock
529ddbbec2 Encode all numbers as float64
All numbers in encoded keys are now encoded into float64, ensuring that decimal numbers are sorted alongside integers.

The maximum number able to be stored as a float64, without losing precision, is now (1<<53 - 1) - the same maximum number possible in javascript.
2016-09-10 00:21:58 +01:00
Tobie Morgan Hitchcock
d76038652b Add key type for rules 2016-09-06 13:27:59 +01:00
Tobie Morgan Hitchcock
8758ce19ff Add test for keys.CK 2016-08-28 09:41:21 +01:00
Tobie Morgan Hitchcock
a91ca78606 Remove failing tests temporarily 2016-07-04 11:36:07 +01:00
Tobie Morgan Hitchcock
6afa0ede40 Rename Trail to Patch 2016-07-04 10:02:51 +01: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
c5f7c81ad1 Add key prefix testing 2016-05-27 16:27:02 +01:00
Tobie Morgan Hitchcock
2024efdb0f Ensure all tests are run 2016-05-23 13:31:24 +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