You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(deps)!: bump @orama/orama and @orama/plugin-data-persistence to 3.0.5 (#197)
* chore(deps): bump @orama/orama to 3.0.5 and @orama/plugin-data-persistence to 3.0.5
* Update README.
* Remove async calls when orama function is not async. Fix README. Improve .gitignore. Update tests.
under the hood to allow users to `load` or `persist` database instances.
68
69
69
70
Turning on the `persistence` option will add the `fastify.orama.persist()` method to your Fastify application.
@@ -78,8 +79,8 @@ Its constructor accepts the following options:
78
79
79
80
-`filePath`: The path to the file where the data will be persisted. Default: `./orama.msp`
80
81
-`format`: The format of the file where the data will be persisted. Default: `binary`
81
-
-`mustExistOnStart`: Whether the file must exist when the plugin is registered or not. Default: `false`. Note that if the file does not exist, you must specify the `schema` option in the plugin registration.
82
-
82
+
-`mustExistOnStart`: Whether the file must exist when the plugin is registered or not. Default: `false`. Note that if
83
+
the file does not exist, you must specify the `schema` option in the plugin registration.
Copy file name to clipboardExpand all lines: test/orama-proxy.test.js
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ it('Should expose all the Orama APIs', async () => {
19
19
}
20
20
})
21
21
22
-
constharryPotterId=awaitfastify.orama.insert({
22
+
constharryPotterId=fastify.orama.insert({
23
23
title: 'Harry Potter and the Philosopher\'s Stone',
24
24
director: 'Chris Columbus',
25
25
plot: 'Harry Potter, an eleven-year-old orphan, discovers that he is a wizard and is invited to study at Hogwarts. Even as he escapes a dreary life and enters a world of magic, he finds trouble awaiting him.',
@@ -45,25 +45,25 @@ it('Should expose all the Orama APIs', async () => {
0 commit comments