diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-11-22 13:15:58 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-11-22 13:15:58 +0200 |
| commit | ebfcf66e0034b06a4eae72112c91f2d4ac49fdbc (patch) | |
| tree | 76502d443738d0ba417efb086db00d910fbd1af2 /README.md | |
| parent | 995a75a72779a94bec1280716be85c536e8dde82 (diff) | |
Get memtables working finally
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -50,8 +50,8 @@ use log_db::*; // Configure and initialize the database let mut db = DB::configure() .fields(vec![ - (Field::Id, RecordField::int()), - (Field::Data, RecordField::bytes()), + (Field::Id, ValueType::int()), + (Field::Data, ValueType::bytes()), ]) .primary_key(Field::Id) .initialize()?; @@ -101,11 +101,11 @@ maturin build --release # for the release version Then you can use the Python bindings like so: ```python -from log_db_py import DB, Value, RecordField, Record +from log_db_py import DB, Value, ValueType, Record config = DB.configure(); config.primary_key = "id" -config.fields = [("id", RecordField.int().nullable())] +config.fields = [("id", ValueType.int().nullable())] db = config.initialize() db.upsert(Record(Value.int(10))) |
