| Class | KyotoCabinet::DB |
| In: |
kyotocabinet.rb
|
| Parent: | Object |
Interface of database abstraction.
| GEXCEPTIONAL | = | 1 << 0 | generic mode: exceptional mode | |
| GCONCURRENT | = | 1 << 1 | generic mode: concurrent mode | |
| OREADER | = | 1 << 0 | open mode: open as a reader | |
| OWRITER | = | 1 << 1 | open mode: open as a writer | |
| OCREATE | = | 1 << 2 | open mode: writer creating | |
| OTRUNCATE | = | 1 << 3 | open mode: writer truncating | |
| OAUTOTRAN | = | 1 << 4 | open mode: auto transaction | |
| OAUTOSYNC | = | 1 << 5 | open mode: auto synchronization | |
| ONOLOCK | = | 1 << 6 | open mode: open without locking | |
| OTRYLOCK | = | 1 << 7 | open mode: lock without blocking | |
| ONOREPAIR | = | 1 << 8 | open mode: open without auto repair | |
| MSET | = | 0 | merge mode: overwrite the existing value | |
| MADD | = | 1 | merge mode: keep the existing value | |
| MREPLACE | = | 2 | merge mode: modify the existing record only | |
| MAPPEND | = | 3 | merge mode: append the new value |
Create a database object.
Process a database by the block parameter.
Accept a visitor to a record.
Accept a visitor to multiple records at once.
Add a record.
Append the value of a record.
Begin transaction.
Perform compare-and-swap.
Create a copy of the database file.
Create a cursor object.
Process a cursor by the block parameter.
Dump records into a snapshot file.
Process each records with a iterator block.
Process the key of each record with a iterator block.
Process the value of each record with a iterator block.
End transaction.
Retrieve the value of a record.
Retrieve records at once.
Add a number to the numeric integer value of a record.
Add a number to the numeric double value of a record.
Iterate to accept a visitor for each record.
Load records from a snapshot file.
Get keys matching a prefix string.
Get keys matching a regular expression string.
Merge records from other databases.
Open a database file.
Remove a record.
Remove records at once.
Replace the value of a record.
Set the value of a record.
Store records at once.
Remove the first record.
Get the size of the database file.
Get the miscellaneous status information.
Synchronize updated contents with the file and the device.
Perform entire transaction by the block parameter.
Set the encoding of external strings.