Skip to content

Commit 6c5a78e

Browse files
dan-obxloryruta
authored andcommitted
obx-model.json renamed to objectbox-model.json #25
1 parent 1ee4753 commit 6c5a78e

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

example/ollama/llamas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DocumentEmbedding:
3333

3434
model = Model()
3535
model.entity(DocumentEmbedding)
36-
sync_model(model, os.path.join(os.path.dirname(__file__),"obx-model.json") )
36+
sync_model(model, os.path.join(os.path.dirname(__file__),"objectbox-model.json") )
3737

3838
store = objectbox.Store(model=model)
3939
box = store.box(DocumentEmbedding)

example/tasks/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ class Task:
1414
def get_objectbox_model():
1515
m = Model()
1616
m.entity(Task)
17-
sync_model(m, os.path.join(os.path.dirname(__file__),"obx-model.json") )
17+
sync_model(m, os.path.join(os.path.dirname(__file__),"objectbox-model.json") )
1818
return m
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,37 @@
55
"modelVersionParserMinimum": 5,
66
"entities": [
77
{
8-
"id": "1:8788355504645367043",
8+
"id": "1:5152209066423907023",
99
"name": "Task",
10-
"lastPropertyId": "4:8008741740181940834",
10+
"lastPropertyId": "4:7654179801863866748",
1111
"properties": [
1212
{
13-
"id": "1:2204404178690013419",
13+
"id": "1:705340479536670333",
1414
"name": "id",
1515
"type": 6,
1616
"flags": 1
1717
},
1818
{
19-
"id": "2:9211247851395059885",
19+
"id": "2:488411871914776672",
2020
"name": "text",
2121
"type": 9,
2222
"flags": 0
2323
},
2424
{
25-
"id": "3:1225557865887046719",
25+
"id": "3:3330502346908829733",
2626
"name": "date_created",
2727
"type": 10,
2828
"flags": 0
2929
},
3030
{
31-
"id": "4:8008741740181940834",
31+
"id": "4:7654179801863866748",
3232
"name": "date_finished",
3333
"type": 10,
3434
"flags": 0
3535
}
3636
]
3737
}
3838
],
39-
"lastEntityId": "1:8788355504645367043",
39+
"lastEntityId": "1:5152209066423907023",
4040
"lastIndexId": "0:0"
4141
}

example/vectorsearch-cities/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ class City:
1717
def get_objectbox_model():
1818
m = Model()
1919
m.entity(City)
20-
sync_model(m, os.path.join(os.path.dirname(__file__),"obx-model.json") )
20+
sync_model(m, os.path.join(os.path.dirname(__file__),"objectbox-model.json") )
2121
return m
File renamed without changes.

objectbox/model/idsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def sync(self):
237237
self._save_model_json()
238238

239239

240-
def sync_model(model: Model, model_filepath: str = "obx-model.json"):
240+
def sync_model(model: Model, model_filepath: str = "objectbox-model.json"):
241241
""" Syncs the provided model with the model JSON file. """
242242

243243
id_sync = IdSync(model, model_filepath)

0 commit comments

Comments
 (0)