@tejika/db 0.1.0 → 0.2.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/README.md +4 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -24,4 +24,8 @@ await db.close()
|
|
|
24
24
|
The file is `getDatabasePath(app, name)` from `@tejika/env` unless `path` is given
|
|
25
25
|
(`':memory:'` is supported); `<APP>_DATABASE_PATH` overrides the default location.
|
|
26
26
|
|
|
27
|
+
Tables (store and migration) carry a prefix, `hozon` by default. Set `tablePrefix`
|
|
28
|
+
(`^[a-z][a-z0-9_]{0,30}$`) to change it, e.g. `tj` gives `tj_<store>_migration`. A store
|
|
29
|
+
can opt tables out with its `unprefixedTables` predicate.
|
|
30
|
+
|
|
27
31
|
Node only (`node:sqlite`): Electron main processes must mark `node:sqlite` external.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tejika/db",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Open local hozon databases for CLI tools and daemons",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"database",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"LICENSE"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@hozon/db": "^0.
|
|
32
|
+
"@hozon/db": "^0.2.2",
|
|
33
33
|
"@hozon/node-sqlite": "^0.1.0",
|
|
34
34
|
"@tejika/env": "^0.5.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@hozon/store-log": "^0.1
|
|
38
|
-
"@hozon/store-telemetry": "^0.1
|
|
37
|
+
"@hozon/store-log": "^0.2.1",
|
|
38
|
+
"@hozon/store-telemetry": "^0.2.1",
|
|
39
39
|
"@types/node": "^26.6.4"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|