@atscript/db-sqlite 0.1.100 → 0.1.102
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/dist/index.cjs +1 -0
- package/dist/index.d.cts +1 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -0
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseDbAdapter, DbQuery, DbSpace, FilterExpr, TColumnDiff, TDbDeleteResult, TDbFieldMeta, TDbInsertManyResult, TDbInsertResult, TDbUpdateResult, TExistingColumn, TFieldOps, TSearchIndexInfo, TSyncColumnResult, TValueFormatterPair } from "@atscript/db";
|
|
2
2
|
import { TMetadataMap } from "@atscript/typescript/utils";
|
|
3
|
-
import * as _$better_sqlite30 from "better-sqlite3";
|
|
4
3
|
import { FilterExpr as FilterExpr$1 } from "@uniqu/core";
|
|
5
4
|
import { TSqlFragment, TSqlFragment as TSqlFragment$1 } from "@atscript/db-sql-tools";
|
|
6
5
|
|
|
@@ -238,7 +237,7 @@ interface TBetterSqlite3DriverOptions extends Record<string, unknown> {
|
|
|
238
237
|
declare class BetterSqlite3Driver implements TSqliteDriver {
|
|
239
238
|
private db;
|
|
240
239
|
readonly hasVectorExt: boolean;
|
|
241
|
-
constructor(pathOrDb: string |
|
|
240
|
+
constructor(pathOrDb: string | import("better-sqlite3").Database, options?: TBetterSqlite3DriverOptions);
|
|
242
241
|
run(sql: string, params?: unknown[]): TSqliteRunResult;
|
|
243
242
|
all<T = Record<string, unknown>>(sql: string, params?: unknown[]): T[];
|
|
244
243
|
get<T = Record<string, unknown>>(sql: string, params?: unknown[]): T | null;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseDbAdapter, DbQuery, DbSpace, FilterExpr, TColumnDiff, TDbDeleteResult, TDbFieldMeta, TDbInsertManyResult, TDbInsertResult, TDbUpdateResult, TExistingColumn, TFieldOps, TSearchIndexInfo, TSyncColumnResult, TValueFormatterPair } from "@atscript/db";
|
|
2
2
|
import { TSqlFragment, TSqlFragment as TSqlFragment$1 } from "@atscript/db-sql-tools";
|
|
3
3
|
import { TMetadataMap } from "@atscript/typescript/utils";
|
|
4
|
-
import * as _$better_sqlite30 from "better-sqlite3";
|
|
5
4
|
import { FilterExpr as FilterExpr$1 } from "@uniqu/core";
|
|
6
5
|
|
|
7
6
|
//#region src/types.d.ts
|
|
@@ -238,7 +237,7 @@ interface TBetterSqlite3DriverOptions extends Record<string, unknown> {
|
|
|
238
237
|
declare class BetterSqlite3Driver implements TSqliteDriver {
|
|
239
238
|
private db;
|
|
240
239
|
readonly hasVectorExt: boolean;
|
|
241
|
-
constructor(pathOrDb: string |
|
|
240
|
+
constructor(pathOrDb: string | import("better-sqlite3").Database, options?: TBetterSqlite3DriverOptions);
|
|
242
241
|
run(sql: string, params?: unknown[]): TSqliteRunResult;
|
|
243
242
|
all<T = Record<string, unknown>>(sql: string, params?: unknown[]): T[];
|
|
244
243
|
get<T = Record<string, unknown>>(sql: string, params?: unknown[]): T | null;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/db-sqlite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.102",
|
|
4
4
|
"description": "SQLite adapter for @atscript/db with swappable driver support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@atscript/core": "^0.1.
|
|
40
|
-
"@atscript/typescript": "^0.1.
|
|
39
|
+
"@atscript/core": "^0.1.74",
|
|
40
|
+
"@atscript/typescript": "^0.1.74",
|
|
41
41
|
"@types/better-sqlite3": "^7.6.13",
|
|
42
42
|
"@uniqu/core": "^0.1.6",
|
|
43
43
|
"better-sqlite3": "^12.6.2",
|
|
44
44
|
"sqlite-vec": "^0.1.9",
|
|
45
|
-
"unplugin-atscript": "^0.1.
|
|
45
|
+
"unplugin-atscript": "^0.1.74"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atscript/core": "^0.1.
|
|
49
|
-
"@atscript/typescript": "^0.1.
|
|
48
|
+
"@atscript/core": "^0.1.74",
|
|
49
|
+
"@atscript/typescript": "^0.1.74",
|
|
50
50
|
"@uniqu/core": "^0.1.6",
|
|
51
51
|
"better-sqlite3": ">=11.0.0",
|
|
52
|
-
"@atscript/db": "^0.1.
|
|
53
|
-
"@atscript/db-sql-tools": "^0.1.
|
|
52
|
+
"@atscript/db": "^0.1.102",
|
|
53
|
+
"@atscript/db-sql-tools": "^0.1.102"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"better-sqlite3": {
|