From ebfcf66e0034b06a4eae72112c91f2d4ac49fdbc Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 22 Nov 2024 13:15:58 +0200 Subject: Get memtables working finally --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ec09db6..41930e1 100644 --- a/README.md +++ b/README.md @@ -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))) -- cgit v1.3