diff options
Diffstat (limited to 'system/db/query.go')
-rw-r--r-- | system/db/query.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/system/db/query.go b/system/db/query.go new file mode 100644 index 0000000..c9cf37c --- /dev/null +++ b/system/db/query.go @@ -0,0 +1,21 @@ +package db + +// Set inserts or updates values in the database. +// The `key` argument is a string made up of namespace:id (string:int) +func Set(key string) error { + + return nil +} + +// Get retrives one item from the database. Non-existent values will return an empty []byte +// The `key` argument is a string made up of namespace:id (string:int) +func Get(key string) []byte { + + return nil +} + +// GetAll retrives all items from the database within the provided namespace +func GetAll(namespace string) [][]byte { + + return nil +} |