Skip to content

Commit 8fad368

Browse files
committed
objectbox: imports Query and QueryBuilder #52
also added a one-line docstring
1 parent 173ccd3 commit 8fad368

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

objectbox/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
from objectbox.c import NotFoundException, version_core, DebugFlags
2323
from objectbox.version import Version
2424
from objectbox.condition import PropertyQueryCondition
25+
from objectbox.query import Query
26+
from objectbox.query_builder import QueryBuilder
2527
from objectbox.builder import Builder
2628
from objectbox.objectbox import ObjectBox
2729

@@ -70,6 +72,8 @@
7072
'DebugFlags',
7173
'PropertyQueryCondition',
7274
'HnswFlags',
75+
'Query',
76+
'QueryBuilder'
7377
]
7478

7579
# Python binding version

objectbox/query.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717

1818
class Query:
19+
"""
20+
Query expression
21+
"""
1922
def __init__(self, c_query, box: 'Box'):
2023
self._c_query = c_query
2124
self._box = box

objectbox/query_builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111

1212
class QueryBuilder:
13+
"""
14+
Query builder
15+
"""
1316
def __init__(self, store: Store, box: 'Box'):
1417
self._box = box
1518
self._entity = box._entity

0 commit comments

Comments
 (0)