Skip to content

Commit 0ee94c8

Browse files
committed
Added Null message object to init file for convenient importing.
1 parent 458983c commit 0ee94c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Running the interactive CLI is as easy as `cottontaildb-client [--port PORT] hos
1717
Example usage in scripts:
1818

1919
```python
20-
from cottontaildb_client import CottontailDBClient, Type, Literal, column_def
20+
from cottontaildb_client import CottontailDBClient, Type, Literal, Null, column_def
2121

2222
with CottontailDBClient('localhost', 1865) as client:
2323
# Create schema
@@ -36,7 +36,8 @@ with CottontailDBClient('localhost', 1865) as client:
3636
columns = ['id', 'value']
3737
values = [
3838
[Literal(stringData='test_10'), Literal(intData=10)],
39-
[Literal(stringData='test_20'), Literal(intData=20)]
39+
[Literal(stringData='test_20'), Literal(intData=20)],
40+
[Literal(stringData='test_null'), Literal(nullData=Null())]
4041
]
4142
client.insert_batch('example_schema', 'example_entity', columns, values)
4243
```

cottontaildb_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from .cottontail_pb2 import IndexType, Type, Literal
1+
from .cottontail_pb2 import IndexType, Type, Literal, Null
22
from .cottontaildb_client import CottontailDBClient, column_def, float_vector

0 commit comments

Comments
 (0)