aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
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)))