@op-engineering/op-sqlite 11.2.11 → 11.2.13
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 +1 -1
- package/lib/commonjs/index.js +71 -55
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +69 -53
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/index.d.ts +170 -32
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +254 -99
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function nativeCallSyncHook(): unknown;
|
|
3
|
-
var __OPSQLiteProxy: object | undefined;
|
|
4
|
-
}
|
|
5
|
-
export declare const OPSQLite: OPSQLiteProxy;
|
|
6
|
-
export declare const IOS_DOCUMENT_PATH: any, IOS_LIBRARY_PATH: any, ANDROID_DATABASE_PATH: any, ANDROID_FILES_PATH: any, ANDROID_EXTERNAL_FILES_PATH: any;
|
|
7
|
-
type Scalar = string | number | boolean | null | ArrayBuffer | ArrayBufferView;
|
|
1
|
+
export type Scalar = string | number | boolean | null | ArrayBuffer | ArrayBufferView;
|
|
8
2
|
/**
|
|
9
3
|
* Object returned by SQL Query executions {
|
|
10
4
|
* insertId: Represent the auto-generated row id if applicable
|
|
@@ -60,31 +54,127 @@ export type BatchQueryResult = {
|
|
|
60
54
|
* Result of loading a file and executing every line as a SQL command
|
|
61
55
|
* Similar to BatchQueryResult
|
|
62
56
|
*/
|
|
63
|
-
export
|
|
57
|
+
export type FileLoadResult = BatchQueryResult & {
|
|
64
58
|
commands?: number;
|
|
65
|
-
}
|
|
66
|
-
export
|
|
59
|
+
};
|
|
60
|
+
export type Transaction = {
|
|
67
61
|
commit: () => Promise<QueryResult>;
|
|
68
62
|
execute: (query: string, params?: Scalar[]) => Promise<QueryResult>;
|
|
69
63
|
rollback: () => Promise<QueryResult>;
|
|
70
|
-
}
|
|
71
|
-
export
|
|
72
|
-
start: () => void;
|
|
73
|
-
}
|
|
74
|
-
export type PreparedStatementObj = {
|
|
64
|
+
};
|
|
65
|
+
export type PreparedStatement = {
|
|
75
66
|
bind: (params: any[]) => Promise<void>;
|
|
76
67
|
execute: () => Promise<QueryResult>;
|
|
77
68
|
};
|
|
69
|
+
type InternalDB = {
|
|
70
|
+
close: () => void;
|
|
71
|
+
delete: (location?: string) => void;
|
|
72
|
+
attach: (mainDbName: string, dbNameToAttach: string, alias: string, location?: string) => void;
|
|
73
|
+
detach: (mainDbName: string, alias: string) => void;
|
|
74
|
+
transaction: (fn: (tx: Transaction) => Promise<void>) => Promise<void>;
|
|
75
|
+
executeSync: (query: string, params?: Scalar[]) => QueryResult;
|
|
76
|
+
execute: (query: string, params?: Scalar[]) => Promise<QueryResult>;
|
|
77
|
+
executeWithHostObjects: (query: string, params?: Scalar[]) => Promise<QueryResult>;
|
|
78
|
+
executeBatch: (commands: SQLBatchTuple[]) => Promise<BatchQueryResult>;
|
|
79
|
+
loadFile: (location: string) => Promise<FileLoadResult>;
|
|
80
|
+
updateHook: (callback?: ((params: {
|
|
81
|
+
table: string;
|
|
82
|
+
operation: UpdateHookOperation;
|
|
83
|
+
row?: any;
|
|
84
|
+
rowId: number;
|
|
85
|
+
}) => void) | null) => void;
|
|
86
|
+
commitHook: (callback?: (() => void) | null) => void;
|
|
87
|
+
rollbackHook: (callback?: (() => void) | null) => void;
|
|
88
|
+
prepareStatement: (query: string) => PreparedStatement;
|
|
89
|
+
loadExtension: (path: string, entryPoint?: string) => void;
|
|
90
|
+
executeRaw: (query: string, params?: Scalar[]) => Promise<any[]>;
|
|
91
|
+
getDbPath: (location?: string) => string;
|
|
92
|
+
reactiveExecute: (params: {
|
|
93
|
+
query: string;
|
|
94
|
+
arguments: any[];
|
|
95
|
+
fireOn: {
|
|
96
|
+
table: string;
|
|
97
|
+
ids?: number[];
|
|
98
|
+
}[];
|
|
99
|
+
callback: (response: any) => void;
|
|
100
|
+
}) => () => void;
|
|
101
|
+
sync: () => void;
|
|
102
|
+
flushPendingReactiveQueries: () => Promise<void>;
|
|
103
|
+
};
|
|
78
104
|
export type DB = {
|
|
79
105
|
close: () => void;
|
|
80
106
|
delete: (location?: string) => void;
|
|
81
107
|
attach: (mainDbName: string, dbNameToAttach: string, alias: string, location?: string) => void;
|
|
82
108
|
detach: (mainDbName: string, alias: string) => void;
|
|
109
|
+
/**
|
|
110
|
+
* Wraps all the executions into a transaction. If an error is thrown it will rollback all of the changes
|
|
111
|
+
*
|
|
112
|
+
* You need to use this if you are using reactive queries for the queries to fire after the transaction is done
|
|
113
|
+
*/
|
|
83
114
|
transaction: (fn: (tx: Transaction) => Promise<void>) => Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Sync version of the execute function
|
|
117
|
+
* It will block the JS thread and therefore your UI and should be used with caution
|
|
118
|
+
*
|
|
119
|
+
* When writing your queries, you can use the ? character as a placeholder for parameters
|
|
120
|
+
* The parameters will be automatically escaped and sanitized
|
|
121
|
+
*
|
|
122
|
+
* Example:
|
|
123
|
+
* db.executeSync('SELECT * FROM table WHERE id = ?', [1]);
|
|
124
|
+
*
|
|
125
|
+
* If you are writing a query that doesn't require parameters, you can omit the second argument
|
|
126
|
+
*
|
|
127
|
+
* If you are writing to the database YOU SHOULD BE USING TRANSACTIONS!
|
|
128
|
+
* Transactions protect you from partial writes and ensure that your data is always in a consistent state
|
|
129
|
+
*
|
|
130
|
+
* @param query
|
|
131
|
+
* @param params
|
|
132
|
+
* @returns QueryResult
|
|
133
|
+
*/
|
|
84
134
|
executeSync: (query: string, params?: Scalar[]) => QueryResult;
|
|
135
|
+
/**
|
|
136
|
+
* Basic query execution function, it is async don't forget to await it
|
|
137
|
+
*
|
|
138
|
+
* When writing your queries, you can use the ? character as a placeholder for parameters
|
|
139
|
+
* The parameters will be automatically escaped and sanitized
|
|
140
|
+
*
|
|
141
|
+
* Example:
|
|
142
|
+
* await db.execute('SELECT * FROM table WHERE id = ?', [1]);
|
|
143
|
+
*
|
|
144
|
+
* If you are writing a query that doesn't require parameters, you can omit the second argument
|
|
145
|
+
*
|
|
146
|
+
* If you are writing to the database YOU SHOULD BE USING TRANSACTIONS!
|
|
147
|
+
* Transactions protect you from partial writes and ensure that your data is always in a consistent state
|
|
148
|
+
*
|
|
149
|
+
* If you need a large amount of queries ran as fast as possible you should be using `executeBatch`, `executeRaw`, `loadFile` or `executeWithHostObjects`
|
|
150
|
+
*
|
|
151
|
+
* @param query string of your SQL query
|
|
152
|
+
* @param params a list of parameters to bind to the query, if any
|
|
153
|
+
* @returns Promise<QueryResult> with the result of the query
|
|
154
|
+
*/
|
|
85
155
|
execute: (query: string, params?: Scalar[]) => Promise<QueryResult>;
|
|
156
|
+
/**
|
|
157
|
+
* Similar to the execute function but returns the response in HostObjects
|
|
158
|
+
* Read more about HostObjects in the documentation and their pitfalls
|
|
159
|
+
*
|
|
160
|
+
* Will be a lot faster than the normal execute functions when returning data but you will pay when accessing the fields
|
|
161
|
+
* as the conversion is done the moment you access any field
|
|
162
|
+
* @param query
|
|
163
|
+
* @param params
|
|
164
|
+
* @returns
|
|
165
|
+
*/
|
|
86
166
|
executeWithHostObjects: (query: string, params?: Scalar[]) => Promise<QueryResult>;
|
|
167
|
+
/**
|
|
168
|
+
* Executes all the queries in the params inside a single transaction
|
|
169
|
+
*
|
|
170
|
+
* It's faster than executing single queries as data is sent to the native side only once
|
|
171
|
+
* @param commands
|
|
172
|
+
* @returns Promise<BatchQueryResult>
|
|
173
|
+
*/
|
|
87
174
|
executeBatch: (commands: SQLBatchTuple[]) => Promise<BatchQueryResult>;
|
|
175
|
+
/**
|
|
176
|
+
* Loads a SQLite Dump from disk. It will be the fastest way to execute a large set of queries as no JS is involved
|
|
177
|
+
*/
|
|
88
178
|
loadFile: (location: string) => Promise<FileLoadResult>;
|
|
89
179
|
updateHook: (callback?: ((params: {
|
|
90
180
|
table: string;
|
|
@@ -94,10 +184,33 @@ export type DB = {
|
|
|
94
184
|
}) => void) | null) => void;
|
|
95
185
|
commitHook: (callback?: (() => void) | null) => void;
|
|
96
186
|
rollbackHook: (callback?: (() => void) | null) => void;
|
|
97
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Constructs a prepared statement from the query string
|
|
189
|
+
* The statement can be re-bound with parameters and executed
|
|
190
|
+
* The performance gain is significant when the same query is executed multiple times, NOT when the query is executed (once)
|
|
191
|
+
* The cost lies in the preparation of the statement as it is compiled and optimized by the sqlite engine, the params can then rebound
|
|
192
|
+
* but the query itself is already optimized
|
|
193
|
+
*
|
|
194
|
+
* @param query string of your SQL query
|
|
195
|
+
* @returns Prepared statement object
|
|
196
|
+
*/
|
|
197
|
+
prepareStatement: (query: string) => PreparedStatement;
|
|
198
|
+
/**
|
|
199
|
+
* Loads a runtime loadable sqlite extension. Libsql and iOS embedded version do not support loading extensions
|
|
200
|
+
*/
|
|
98
201
|
loadExtension: (path: string, entryPoint?: string) => void;
|
|
202
|
+
/**
|
|
203
|
+
* Same as `execute` except the results are not returned in objects but rather in arrays with just the values and not the keys
|
|
204
|
+
* It will be faster since a lot of repeated work is skipped and only the values you care about are returned
|
|
205
|
+
*/
|
|
99
206
|
executeRaw: (query: string, params?: Scalar[]) => Promise<any[]>;
|
|
207
|
+
/**
|
|
208
|
+
* Get's the absolute path to the db file. Useful for debugging on local builds and for attaching the DB from users devices
|
|
209
|
+
*/
|
|
100
210
|
getDbPath: (location?: string) => string;
|
|
211
|
+
/**
|
|
212
|
+
* Reactive execution of queries when data is written to the database. Check the docs for how to use them.
|
|
213
|
+
*/
|
|
101
214
|
reactiveExecute: (params: {
|
|
102
215
|
query: string;
|
|
103
216
|
arguments: any[];
|
|
@@ -115,56 +228,81 @@ export type DB = {
|
|
|
115
228
|
* The database is hosted in turso
|
|
116
229
|
**/
|
|
117
230
|
sync: () => void;
|
|
118
|
-
flushPendingReactiveQueries: () => Promise<void>;
|
|
119
231
|
};
|
|
120
|
-
type
|
|
232
|
+
export type DBParams = {
|
|
233
|
+
url?: string;
|
|
234
|
+
authToken?: string;
|
|
235
|
+
name?: string;
|
|
236
|
+
location?: string;
|
|
237
|
+
syncInterval?: number;
|
|
238
|
+
};
|
|
239
|
+
export type OPSQLiteProxy = {
|
|
121
240
|
open: (options: {
|
|
122
241
|
name: string;
|
|
123
242
|
location?: string;
|
|
124
243
|
encryptionKey?: string;
|
|
125
|
-
}) =>
|
|
244
|
+
}) => InternalDB;
|
|
126
245
|
openRemote: (options: {
|
|
127
246
|
url: string;
|
|
128
247
|
authToken: string;
|
|
129
|
-
}) =>
|
|
130
|
-
openSync: (options:
|
|
131
|
-
url: string;
|
|
132
|
-
authToken: string;
|
|
133
|
-
name: string;
|
|
134
|
-
location?: string;
|
|
135
|
-
syncInterval?: number;
|
|
136
|
-
}) => DB;
|
|
248
|
+
}) => InternalDB;
|
|
249
|
+
openSync: (options: DBParams) => InternalDB;
|
|
137
250
|
isSQLCipher: () => boolean;
|
|
138
251
|
isLibsql: () => boolean;
|
|
139
252
|
isIOSEmbedded: () => boolean;
|
|
140
253
|
};
|
|
141
|
-
|
|
254
|
+
declare global {
|
|
255
|
+
var __OPSQLiteProxy: object | undefined;
|
|
256
|
+
}
|
|
257
|
+
export declare const IOS_DOCUMENT_PATH: any, IOS_LIBRARY_PATH: any, ANDROID_DATABASE_PATH: any, ANDROID_FILES_PATH: any, ANDROID_EXTERNAL_FILES_PATH: any;
|
|
258
|
+
/**
|
|
259
|
+
* Open a replicating connection via libsql to a turso db
|
|
142
260
|
* libsql needs to be enabled on your package.json
|
|
143
261
|
*/
|
|
144
|
-
export declare const openSync: (
|
|
262
|
+
export declare const openSync: (params: {
|
|
145
263
|
url: string;
|
|
146
264
|
authToken: string;
|
|
147
265
|
name: string;
|
|
148
266
|
location?: string;
|
|
149
267
|
syncInterval?: number;
|
|
150
268
|
}) => DB;
|
|
151
|
-
/**
|
|
269
|
+
/**
|
|
270
|
+
* Open a remote connection via libsql to a turso db
|
|
152
271
|
* libsql needs to be enabled on your package.json
|
|
153
272
|
*/
|
|
154
|
-
export declare const openRemote: (
|
|
273
|
+
export declare const openRemote: (params: {
|
|
155
274
|
url: string;
|
|
156
275
|
authToken: string;
|
|
157
276
|
}) => DB;
|
|
158
|
-
|
|
277
|
+
/**
|
|
278
|
+
* Open a connection to a local sqlite or sqlcipher database
|
|
279
|
+
* If you want libsql remote or sync connections, use openSync or openRemote
|
|
280
|
+
*/
|
|
281
|
+
export declare const open: (params: {
|
|
159
282
|
name: string;
|
|
160
283
|
location?: string;
|
|
161
284
|
encryptionKey?: string;
|
|
162
285
|
}) => DB;
|
|
286
|
+
/**
|
|
287
|
+
* Moves the database from the assets folder to the default path (check the docs) or to a custom path
|
|
288
|
+
* It DOES NOT OVERWRITE the database if it already exists in the destination path
|
|
289
|
+
* if you want to overwrite the database, you need to pass the overwrite flag as true
|
|
290
|
+
* @param args object with the parameters for the operaiton
|
|
291
|
+
* @returns promise, rejects if failed to move the database, resolves if the operation was successful
|
|
292
|
+
*/
|
|
163
293
|
export declare const moveAssetsDatabase: (args: {
|
|
164
294
|
filename: string;
|
|
165
295
|
path?: string;
|
|
166
296
|
overwrite?: boolean;
|
|
167
297
|
}) => Promise<boolean>;
|
|
298
|
+
/**
|
|
299
|
+
* Used to load a dylib file that contains a sqlite 3 extension/plugin
|
|
300
|
+
* It returns the raw path to the actual file which then needs to be passed to the loadExtension function
|
|
301
|
+
* Check the docs for more information
|
|
302
|
+
* @param bundle the iOS bundle identifier of the .framework
|
|
303
|
+
* @param name the file name of the dylib file
|
|
304
|
+
* @returns
|
|
305
|
+
*/
|
|
168
306
|
export declare const getDylibPath: (bundle: string, name: string) => string;
|
|
169
307
|
export declare const isSQLCipher: () => boolean;
|
|
170
308
|
export declare const isLibsql: () => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,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