We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e1717d commit c44c759Copy full SHA for c44c759
1 file changed
objectbox/store.py
@@ -17,6 +17,7 @@
17
import objectbox.transaction
18
from objectbox.store_options import StoreOptions
19
import objectbox
20
+from objectbox.model.entity import _Entity
21
from typing import *
22
23
class Store:
@@ -170,6 +171,15 @@ def __init__(self,
170
171
172
def __del__(self):
173
self.close()
174
+
175
+ def box(self, entity: _Entity) -> 'objectbox.Box':
176
+ """
177
+ Open a box for an entity.
178
179
+ :param entity:
180
+ Entity type of the model
181
182
+ return objectbox.Box(self, entity)
183
184
def read_tx(self):
185
return objectbox.transaction.read(self)
0 commit comments