traildb.cr
traildb.cr
TrailDB bindings for Crystal.
Check traildb for general db driver documentation.
- crystal: 0.20.0
Installation
Add this to your application's shard.yml
:
dependencies:
traildb:
github: maiha/traildb.cr
Usage
low level api
use LibTraildb
as you like for a shin wrapper of C library
require "traildb"
cons = LibTraildb.cons_init
high level api
- use
TrailDB.create
for constructor - use
TrailDB.open
for tdb reader - still in progress
require "traildb"
TrailDB.create("tiny", ["username", "action"]) do |db|
uuid = "1000000000000000"
timestamp = Time.now.epoch
db.add(uuid, timestamp, ["maiha", "login"])
end
% tdb dump -i tiny
31303030303030303030303030303030 1479320076 maiha login
Roadmap
0.1.0 : low level api
-
LibTraildb
0.2.0 : high level api
-
TrailDB::Constructor
-
TrailDB::TDB
Contributing
- Fork it ( https://github.com/maiha/traildb.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- maiha maiha - creator, maintainer
Repository
traildb.cr
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- over 7 years ago
- November 14, 2016
License
MIT License
Links
Synced at
Mon, 06 May 2024 19:40:09 GMT
Languages