From 5020bc4204cb470146e4c934018b965f1cf9eba2 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 10 Feb 2025 21:48:19 +0200 Subject: Add missing bindings and update existing --- py_bindings/example.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'py_bindings/example.py') 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() -- cgit v1.3