@xnetjs/sqlite 0.0.2 → 0.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/dist/{adapter-I7yAV6iu.d.ts → adapter-imtxkmXZ.d.ts} +48 -1
- package/dist/adapters/electron.d.ts +70 -6
- package/dist/adapters/electron.js +662 -36
- package/dist/adapters/expo.d.ts +6 -2
- package/dist/adapters/expo.js +34 -6
- package/dist/adapters/memory.d.ts +6 -2
- package/dist/adapters/memory.js +8 -1
- package/dist/adapters/reader-thread.d.ts +78 -0
- package/dist/adapters/reader-thread.js +57 -0
- package/dist/adapters/web-proxy.d.ts +71 -3
- package/dist/adapters/web-proxy.js +554 -39
- package/dist/adapters/web-router-worker.d.ts +76 -0
- package/dist/adapters/web-router-worker.js +91 -0
- package/dist/adapters/web-worker.d.ts +56 -1
- package/dist/adapters/web-worker.js +253 -14
- package/dist/adapters/web.d.ts +90 -3
- package/dist/adapters/web.js +10 -4
- package/dist/browser-support.d.ts +65 -1
- package/dist/browser-support.js +15 -3
- package/dist/chunk-5HC5V73T.js +191 -0
- package/dist/chunk-BBZDKLA3.js +727 -0
- package/dist/chunk-CBU263LI.js +30 -0
- package/dist/chunk-CGI2YBZY.js +16 -0
- package/dist/chunk-S6MT6KCI.js +279 -0
- package/dist/chunk-SV475UL5.js +44 -0
- package/dist/chunk-W3L4FXU5.js +415 -0
- package/dist/index.d.ts +111 -8
- package/dist/index.js +219 -130
- package/dist/schema-C4gufY3B.d.ts +35 -0
- package/dist/types-BTabr_VP.d.ts +225 -0
- package/dist/worker-scheduler-D04DqMmR.d.ts +56 -0
- package/package.json +5 -1
- package/dist/chunk-BXYZU3OL.js +0 -245
- package/dist/chunk-HIREU5S5.js +0 -193
- package/dist/chunk-ZRR5D2OD.js +0 -140
- package/dist/schema-CjkXTqxn.d.ts +0 -35
- package/dist/types-C_aHfRDF.d.ts +0 -42
package/dist/types-C_aHfRDF.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @xnetjs/sqlite - Type definitions for unified SQLite adapter
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* SQL parameter types that can be bound to statements.
|
|
6
|
-
*/
|
|
7
|
-
type SQLValue = string | number | bigint | Uint8Array | null;
|
|
8
|
-
/**
|
|
9
|
-
* Row type for query results.
|
|
10
|
-
*/
|
|
11
|
-
type SQLRow = Record<string, SQLValue>;
|
|
12
|
-
/**
|
|
13
|
-
* Result of a mutation query (INSERT, UPDATE, DELETE).
|
|
14
|
-
*/
|
|
15
|
-
interface RunResult {
|
|
16
|
-
/** Number of rows affected by the query */
|
|
17
|
-
changes: number;
|
|
18
|
-
/** Last inserted row ID (for INSERT with AUTOINCREMENT) */
|
|
19
|
-
lastInsertRowid: bigint;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Configuration options for SQLite database.
|
|
23
|
-
*/
|
|
24
|
-
interface SQLiteConfig {
|
|
25
|
-
/** Database file path or name */
|
|
26
|
-
path: string;
|
|
27
|
-
/** Enable WAL mode (default: true) */
|
|
28
|
-
walMode?: boolean;
|
|
29
|
-
/** Enable foreign keys (default: true) */
|
|
30
|
-
foreignKeys?: boolean;
|
|
31
|
-
/** Busy timeout in milliseconds (default: 5000) */
|
|
32
|
-
busyTimeout?: number;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Schema version information.
|
|
36
|
-
*/
|
|
37
|
-
interface SchemaVersion {
|
|
38
|
-
version: number;
|
|
39
|
-
appliedAt: number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type { RunResult as R, SQLValue as S, SQLRow as a, SQLiteConfig as b, SchemaVersion as c };
|