Commit graph

7 commits

Author SHA1 Message Date
5ed44e52fa Multiple changes.
- Provide a method to reopen the database environment if closed.
 - Add #keys, which returns an array of keys for the current collection.
 - Finish collection/namespace implementation.
 - Add various aliases (collection->namespace, etc)
 - Add #clear, which destroys data for a the current collection.
   If called in the main db, destroys all.  Don't close the environment
   after a #clear, just the dbi handle.
 - Various bugfixes.

FossilOrigin-Name: 8b00d59e8c5269266f3c6c0d10056a1c0fe1bb583ffbe099a6ed0dac3baf3a66
2020-12-17 01:09:43 +00:00
d92ba7c5eb Checkpoint commit.
Fleshing out collections, automatic serialization of values.  Stringify
all keys.

FossilOrigin-Name: 8bb5e27eacd18bc34b60309a03cdce31921f790c821dab89bf12cd9bfc19825d
2020-12-16 08:29:50 +00:00
9f1388a8de Make #alloc allocate a rmdbx_t
FossilOrigin-Name: 38973ab9666bc59e44c2d2c48039b4a49bb295cf958fa996849dee4d73ea365e
2020-12-04 19:07:34 +00:00
0093c49b91 Refactor database cleanups to take the same path for #close and ruby's garbage collection.
FossilOrigin-Name: a2a8d99136cfa9e98e75cc262b8f9aefa5ed576d7af804416b8c8c7f4d4f4bdb
2020-12-01 07:58:49 +00:00
2b745bc756 Heh, make it so you can actually update a value. Setting to nil explicitly deletes.
FossilOrigin-Name: 3bbf504a1fd842c17af3909efdb182aaef700d5fb833724d246e4643375c266e
2020-12-01 04:17:11 +00:00
1b3aa55004 Basic storage and retrievals for strings working. Don't try it with anything but strings quite yet.
FossilOrigin-Name: 149679434867913e344a567542c3b6918d739c493c1c67c33a9ce18b63873ed4
2020-12-01 03:32:26 +00:00
37b8091690 Checkpoint commit, start sketching out MDBX::Database.
FossilOrigin-Name: 92f55b2d6cc9652cb9cb67e69588ed0f4f155086a5a160aae68a1f22e9114314
2020-11-30 05:57:26 +00:00