diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-02-10 21:48:19 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-02-10 21:55:45 +0200 |
| commit | 5020bc4204cb470146e4c934018b965f1cf9eba2 (patch) | |
| tree | c73353c0e34a155d038cb72eaaabad1bef2de270 /py_bindings/example.py | |
| parent | 591053c55753e00341bd739c00f9ff09ae6e8141 (diff) | |
Add missing bindings and update existing
Diffstat (limited to 'py_bindings/example.py')
| -rw-r--r-- | py_bindings/example.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/py_bindings/example.py b/py_bindings/example.py index d002a8a..233d111 100644 --- a/py_bindings/example.py +++ b/py_bindings/example.py @@ -1,6 +1,6 @@ import tempfile from pprint import pformat, pprint -from log_db import Value, Type, Bound, DB +from log_db import Value, Bound, DB # TODO: This should be imported from the log_db module # but exporting type aliases does not work automatically @@ -33,10 +33,7 @@ temp_dir = tempfile.TemporaryDirectory() db = DB \ .configure() \ .data_dir(temp_dir.name) \ - .schema([ - ("id", Type.int()), - ("name", Type.string()), - ]) \ + .fields(["id", "name"]) \ .primary_key("id") \ .secondary_keys(["name"]) \ .initialize() |
