https://github.com/walkr/kvlite3
simple key-value store backed by sqlite3 for the Go language
https://github.com/walkr/kvlite3
Last synced: 3 months ago
JSON representation
simple key-value store backed by sqlite3 for the Go language
- Host: GitHub
- URL: https://github.com/walkr/kvlite3
- Owner: walkr
- License: mit
- Created: 2014-05-03T03:49:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-03T04:39:59.000Z (about 11 years ago)
- Last Synced: 2024-06-21T13:10:24.227Z (12 months ago)
- Language: Go
- Size: 164 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
kvlite3
========
simple key-value store backed by sqlite3 for the Go language[](https://travis-ci.org/walkr/kvlite3)
## "Features":
* basic put/get/getall operations
* encodes values as json## Usage:
```go
client, _ := kvlite3.NewClient("./todos.db")
bucket, _ := client.NewBucket("todos")todo := Todo{kvlite3.NewKey(), "Take out trash"}
bucket.Put(todo.Key, todo) // Insert
```[*] See examples/simple.go for for more details
## TODO:
* Implement `putMany`
* Implement `getMany`
* Implement limit/offset in `getAll`