jexidb 1.0.6 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
package/README.md CHANGED
@@ -26,7 +26,8 @@ To create a new instance of the database, you need to provide a file path where
26
26
  import { Database } from 'jexidb'; // ESM
27
27
 
28
28
  const db = new Database('path/to/database.jdb', { // file will be created if it does not already exist
29
- v8: false, // false by default, set to true to use V8 serialization instead of JSON.
29
+ v8: false, //
30
+ create: true, // create the file if it does not exist (default is true)
30
31
  compress: false, // set to true to compress each entry
31
32
  compressIndex: false, // set to true to compress the index only
32
33
  indexes: { // keys to use in queries, only those key values ​​are kept in memory, so fewer specified keys lead to improved performance