-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
37 lines (26 loc) · 757 Bytes
/
README
File metadata and controls
37 lines (26 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
A simple interface to Kyoto Cabinet, somewhat inspired by Active Record.
Programmed for ease of use and hopefully speed..... no benchmarks yet.
# Features
* Just declare your attributes you want to persist.
* Declare your indexes for a reverse lookup by value.
* Range scan queries available.
* Fast...?
Please fork.
# ---------------------
require 'kyoto_record'
class Duck
include KyotoRecord
attr_kyoto :nickname, :waddle_power
index_kyoto :nickname
end
donald = Duck.new
donald.nickname = "Don"
donald.waddle_power = false
donald.save
# Reboot your computer.
# Load back your data.
duck2 = Duck.find(1)
duck3 = Duck.find_by_nickname("Don")
# Please see kyoto_record_spec.rb for details.
# ---------------------
MIT license. Enjoy.