@capawesome/capacitor-libsql 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/Package.swift +30 -0
- package/README.md +301 -0
- package/android/build.gradle +66 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/Libsql.kt +188 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/LibsqlPlugin.java +217 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/options/BeginTransactionOptions.java +28 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/options/CommitTransactionOptions.java +46 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/options/ConnectOptions.java +37 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/options/ExecuteBatchOptions.java +103 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/options/ExecuteOptions.java +82 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/options/QueryOptions.java +82 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/options/RollbackTransactionOptions.java +46 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/options/SyncOptions.java +28 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/results/BeginTransactionResult.java +23 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/results/ConnectResult.java +23 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/classes/results/QueryResult.java +47 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/interfaces/Callback.java +5 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/interfaces/EmptyCallback.java +5 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/interfaces/NonEmptyCallback.java +7 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/interfaces/NonEmptyResultCallback.java +7 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/interfaces/Result.java +7 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +684 -0
- package/dist/esm/definitions.d.ts +287 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +12 -0
- package/dist/esm/web.js +36 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +50 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +53 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/Classes/Options/BeginTransactionOptions.swift +14 -0
- package/ios/Plugin/Classes/Options/CommitTransactionOptions.swift +19 -0
- package/ios/Plugin/Classes/Options/ConnectOptions.swift +24 -0
- package/ios/Plugin/Classes/Options/ExecuteBatchOptions.swift +41 -0
- package/ios/Plugin/Classes/Options/ExecuteOptions.swift +23 -0
- package/ios/Plugin/Classes/Options/QueryOptions.swift +23 -0
- package/ios/Plugin/Classes/Options/RollbackTransactionOptions.swift +19 -0
- package/ios/Plugin/Classes/Options/SyncOptions.swift +14 -0
- package/ios/Plugin/Classes/Results/BeginTransactionResult.swift +16 -0
- package/ios/Plugin/Classes/Results/ConnectResult.swift +16 -0
- package/ios/Plugin/Classes/Results/QueryResult.swift +36 -0
- package/ios/Plugin/Enums/LibsqlError.swift +61 -0
- package/ios/Plugin/Libsql.swift +219 -0
- package/ios/Plugin/LibsqlPlugin.swift +166 -0
- package/ios/Plugin/Protocols/Result.swift +6 -0
- package/package.json +91 -0
package/dist/docs.json
ADDED
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"name": "LibsqlPlugin",
|
|
4
|
+
"slug": "libsqlplugin",
|
|
5
|
+
"docs": "",
|
|
6
|
+
"tags": [],
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"name": "beginTransaction",
|
|
10
|
+
"signature": "(options: BeginTransactionOptions) => Promise<BeginTransactionResult>",
|
|
11
|
+
"parameters": [
|
|
12
|
+
{
|
|
13
|
+
"name": "options",
|
|
14
|
+
"docs": "",
|
|
15
|
+
"type": "BeginTransactionOptions"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"returns": "Promise<BeginTransactionResult>",
|
|
19
|
+
"tags": [
|
|
20
|
+
{
|
|
21
|
+
"name": "since",
|
|
22
|
+
"text": "0.0.0"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"docs": "Begin a transaction on the specified database connection.\n\nOnly available on Android.",
|
|
26
|
+
"complexTypes": [
|
|
27
|
+
"BeginTransactionResult",
|
|
28
|
+
"BeginTransactionOptions"
|
|
29
|
+
],
|
|
30
|
+
"slug": "begintransaction"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "commitTransaction",
|
|
34
|
+
"signature": "(options: CommitTransactionOptions) => Promise<void>",
|
|
35
|
+
"parameters": [
|
|
36
|
+
{
|
|
37
|
+
"name": "options",
|
|
38
|
+
"docs": "",
|
|
39
|
+
"type": "CommitTransactionOptions"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"returns": "Promise<void>",
|
|
43
|
+
"tags": [
|
|
44
|
+
{
|
|
45
|
+
"name": "since",
|
|
46
|
+
"text": "0.0.0"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"docs": "Commit the current transaction on the specified database connection.\n\nOnly available on Android.",
|
|
50
|
+
"complexTypes": [
|
|
51
|
+
"CommitTransactionOptions"
|
|
52
|
+
],
|
|
53
|
+
"slug": "committransaction"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "connect",
|
|
57
|
+
"signature": "(options: ConnectOptions) => Promise<ConnectResult>",
|
|
58
|
+
"parameters": [
|
|
59
|
+
{
|
|
60
|
+
"name": "options",
|
|
61
|
+
"docs": "",
|
|
62
|
+
"type": "ConnectOptions"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"returns": "Promise<ConnectResult>",
|
|
66
|
+
"tags": [
|
|
67
|
+
{
|
|
68
|
+
"name": "since",
|
|
69
|
+
"text": "0.0.0"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"docs": "Connect to a database.\n\nThis method must be called before any other methods that interact with the database.",
|
|
73
|
+
"complexTypes": [
|
|
74
|
+
"ConnectResult",
|
|
75
|
+
"ConnectOptions"
|
|
76
|
+
],
|
|
77
|
+
"slug": "connect"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "execute",
|
|
81
|
+
"signature": "(options: ExecuteOptions) => Promise<void>",
|
|
82
|
+
"parameters": [
|
|
83
|
+
{
|
|
84
|
+
"name": "options",
|
|
85
|
+
"docs": "",
|
|
86
|
+
"type": "ExecuteOptions"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"returns": "Promise<void>",
|
|
90
|
+
"tags": [
|
|
91
|
+
{
|
|
92
|
+
"name": "since",
|
|
93
|
+
"text": "0.0.0"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"docs": "Execute a single SQL statement on the specified database connection.\n\nThis method can be used to execute any SQL statement, including `INSERT`, `UPDATE`, `DELETE`, and `CREATE TABLE`.",
|
|
97
|
+
"complexTypes": [
|
|
98
|
+
"ExecuteOptions"
|
|
99
|
+
],
|
|
100
|
+
"slug": "execute"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "executeBatch",
|
|
104
|
+
"signature": "(options: ExecuteBatchOptions) => Promise<void>",
|
|
105
|
+
"parameters": [
|
|
106
|
+
{
|
|
107
|
+
"name": "options",
|
|
108
|
+
"docs": "",
|
|
109
|
+
"type": "ExecuteBatchOptions"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"returns": "Promise<void>",
|
|
113
|
+
"tags": [
|
|
114
|
+
{
|
|
115
|
+
"name": "since",
|
|
116
|
+
"text": "0.0.0"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"docs": "Execute a batch of SQL statements on the specified database connection.\n\nThis method can be used to execute multiple SQL statements in a single call.",
|
|
120
|
+
"complexTypes": [
|
|
121
|
+
"ExecuteBatchOptions"
|
|
122
|
+
],
|
|
123
|
+
"slug": "executebatch"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "query",
|
|
127
|
+
"signature": "(options: QueryOptions) => Promise<QueryResult>",
|
|
128
|
+
"parameters": [
|
|
129
|
+
{
|
|
130
|
+
"name": "options",
|
|
131
|
+
"docs": "",
|
|
132
|
+
"type": "QueryOptions"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"returns": "Promise<QueryResult>",
|
|
136
|
+
"tags": [
|
|
137
|
+
{
|
|
138
|
+
"name": "since",
|
|
139
|
+
"text": "0.0.0"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"docs": "Query the database and return the result set.\n\nThis method can be used to execute `SELECT` statements and retrieve the result set.",
|
|
143
|
+
"complexTypes": [
|
|
144
|
+
"QueryResult",
|
|
145
|
+
"QueryOptions"
|
|
146
|
+
],
|
|
147
|
+
"slug": "query"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "rollbackTransaction",
|
|
151
|
+
"signature": "(options: RollbackTransactionOptions) => Promise<void>",
|
|
152
|
+
"parameters": [
|
|
153
|
+
{
|
|
154
|
+
"name": "options",
|
|
155
|
+
"docs": "",
|
|
156
|
+
"type": "RollbackTransactionOptions"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"returns": "Promise<void>",
|
|
160
|
+
"tags": [
|
|
161
|
+
{
|
|
162
|
+
"name": "since",
|
|
163
|
+
"text": "0.0.0"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"docs": "Rollback the current transaction on the specified database connection.\n\nThis method will undo all changes made in the current transaction.\n\nOnly available on Android.",
|
|
167
|
+
"complexTypes": [
|
|
168
|
+
"RollbackTransactionOptions"
|
|
169
|
+
],
|
|
170
|
+
"slug": "rollbacktransaction"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "sync",
|
|
174
|
+
"signature": "(options: SyncOptions) => Promise<void>",
|
|
175
|
+
"parameters": [
|
|
176
|
+
{
|
|
177
|
+
"name": "options",
|
|
178
|
+
"docs": "",
|
|
179
|
+
"type": "SyncOptions"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"returns": "Promise<void>",
|
|
183
|
+
"tags": [
|
|
184
|
+
{
|
|
185
|
+
"name": "since",
|
|
186
|
+
"text": "0.0.0"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"docs": "Synchronize the database with the remote server.\n\nOnly available on iOS.",
|
|
190
|
+
"complexTypes": [
|
|
191
|
+
"SyncOptions"
|
|
192
|
+
],
|
|
193
|
+
"slug": "sync"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"properties": []
|
|
197
|
+
},
|
|
198
|
+
"interfaces": [
|
|
199
|
+
{
|
|
200
|
+
"name": "BeginTransactionResult",
|
|
201
|
+
"slug": "begintransactionresult",
|
|
202
|
+
"docs": "",
|
|
203
|
+
"tags": [
|
|
204
|
+
{
|
|
205
|
+
"text": "0.0.0",
|
|
206
|
+
"name": "since"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"methods": [],
|
|
210
|
+
"properties": [
|
|
211
|
+
{
|
|
212
|
+
"name": "transactionId",
|
|
213
|
+
"tags": [
|
|
214
|
+
{
|
|
215
|
+
"text": "0.0.0",
|
|
216
|
+
"name": "since"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"docs": "The ID of the transaction that was started.",
|
|
220
|
+
"complexTypes": [],
|
|
221
|
+
"type": "string"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "BeginTransactionOptions",
|
|
227
|
+
"slug": "begintransactionoptions",
|
|
228
|
+
"docs": "",
|
|
229
|
+
"tags": [
|
|
230
|
+
{
|
|
231
|
+
"text": "0.0.0",
|
|
232
|
+
"name": "since"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"methods": [],
|
|
236
|
+
"properties": [
|
|
237
|
+
{
|
|
238
|
+
"name": "connectionId",
|
|
239
|
+
"tags": [
|
|
240
|
+
{
|
|
241
|
+
"text": "0.0.0",
|
|
242
|
+
"name": "since"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"docs": "The ID of the connection to begin the transaction on.",
|
|
246
|
+
"complexTypes": [],
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "CommitTransactionOptions",
|
|
253
|
+
"slug": "committransactionoptions",
|
|
254
|
+
"docs": "",
|
|
255
|
+
"tags": [
|
|
256
|
+
{
|
|
257
|
+
"text": "0.0.0",
|
|
258
|
+
"name": "since"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"methods": [],
|
|
262
|
+
"properties": [
|
|
263
|
+
{
|
|
264
|
+
"name": "connectionId",
|
|
265
|
+
"tags": [
|
|
266
|
+
{
|
|
267
|
+
"text": "0.0.0",
|
|
268
|
+
"name": "since"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"docs": "The ID of the connection to commit the transaction on.",
|
|
272
|
+
"complexTypes": [],
|
|
273
|
+
"type": "string"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "transactionId",
|
|
277
|
+
"tags": [
|
|
278
|
+
{
|
|
279
|
+
"text": "0.0.0",
|
|
280
|
+
"name": "since"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"docs": "The ID of the transaction to commit.",
|
|
284
|
+
"complexTypes": [],
|
|
285
|
+
"type": "string"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "ConnectResult",
|
|
291
|
+
"slug": "connectresult",
|
|
292
|
+
"docs": "",
|
|
293
|
+
"tags": [
|
|
294
|
+
{
|
|
295
|
+
"text": "0.0.0",
|
|
296
|
+
"name": "since"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"methods": [],
|
|
300
|
+
"properties": [
|
|
301
|
+
{
|
|
302
|
+
"name": "connectionId",
|
|
303
|
+
"tags": [
|
|
304
|
+
{
|
|
305
|
+
"text": "0.0.0",
|
|
306
|
+
"name": "since"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"docs": "The ID of the connection.",
|
|
310
|
+
"complexTypes": [],
|
|
311
|
+
"type": "string"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "ConnectOptions",
|
|
317
|
+
"slug": "connectoptions",
|
|
318
|
+
"docs": "",
|
|
319
|
+
"tags": [],
|
|
320
|
+
"methods": [],
|
|
321
|
+
"properties": [
|
|
322
|
+
{
|
|
323
|
+
"name": "authToken",
|
|
324
|
+
"tags": [
|
|
325
|
+
{
|
|
326
|
+
"text": "0.0.0",
|
|
327
|
+
"name": "since"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"docs": "The authentication token for the database.\n\nThis is required for connecting to a remote database.\nIf the database is local (i.e., a file on the device), this can be omitted.",
|
|
331
|
+
"complexTypes": [],
|
|
332
|
+
"type": "string | undefined"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "path",
|
|
336
|
+
"tags": [
|
|
337
|
+
{
|
|
338
|
+
"text": "0.0.0",
|
|
339
|
+
"name": "since"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"text": "'/data/user/0/com.example.plugin/cache/data.db'",
|
|
343
|
+
"name": "example"
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
"docs": "The path to the database file.\n\nIf no path or URL is provided, the plugin will create a new in-memory database.\n\nIf no file exists at the specified path, a new file will be created.",
|
|
347
|
+
"complexTypes": [],
|
|
348
|
+
"type": "string | undefined"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"name": "url",
|
|
352
|
+
"tags": [
|
|
353
|
+
{
|
|
354
|
+
"text": "0.0.0",
|
|
355
|
+
"name": "since"
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"docs": "The URL of the database.\n\nThis can be used to connect to a remote database.\nIf the URL is provided, the `authToken` must also be provided.\n\nIf no path or URL is provided, the plugin will create a new in-memory database.",
|
|
359
|
+
"complexTypes": [],
|
|
360
|
+
"type": "string | undefined"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "ExecuteOptions",
|
|
366
|
+
"slug": "executeoptions",
|
|
367
|
+
"docs": "",
|
|
368
|
+
"tags": [
|
|
369
|
+
{
|
|
370
|
+
"text": "0.0.0",
|
|
371
|
+
"name": "since"
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
"methods": [],
|
|
375
|
+
"properties": [
|
|
376
|
+
{
|
|
377
|
+
"name": "connectionId",
|
|
378
|
+
"tags": [
|
|
379
|
+
{
|
|
380
|
+
"text": "0.0.0",
|
|
381
|
+
"name": "since"
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"docs": "The ID of the connection to execute the SQL statement on.",
|
|
385
|
+
"complexTypes": [],
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "statement",
|
|
390
|
+
"tags": [
|
|
391
|
+
{
|
|
392
|
+
"text": "0.0.0",
|
|
393
|
+
"name": "since"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"text": "'INSERT INTO users (name, age) VALUES (?, ?)'",
|
|
397
|
+
"name": "example"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"docs": "The SQL statement to execute.",
|
|
401
|
+
"complexTypes": [],
|
|
402
|
+
"type": "string"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "transactionId",
|
|
406
|
+
"tags": [
|
|
407
|
+
{
|
|
408
|
+
"text": "0.0.0",
|
|
409
|
+
"name": "since"
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
"docs": "The transaction ID to use for the SQL statement.\n\nOnly available on Android.",
|
|
413
|
+
"complexTypes": [],
|
|
414
|
+
"type": "string | undefined"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "values",
|
|
418
|
+
"tags": [
|
|
419
|
+
{
|
|
420
|
+
"text": "0.0.0",
|
|
421
|
+
"name": "since"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"text": "['Alice', 30]",
|
|
425
|
+
"name": "example"
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"docs": "The values to bind to the SQL statement.",
|
|
429
|
+
"complexTypes": [
|
|
430
|
+
"Value"
|
|
431
|
+
],
|
|
432
|
+
"type": "Value[] | undefined"
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "ExecuteBatchOptions",
|
|
438
|
+
"slug": "executebatchoptions",
|
|
439
|
+
"docs": "",
|
|
440
|
+
"tags": [
|
|
441
|
+
{
|
|
442
|
+
"text": "0.0.0",
|
|
443
|
+
"name": "since"
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"methods": [],
|
|
447
|
+
"properties": [
|
|
448
|
+
{
|
|
449
|
+
"name": "connectionId",
|
|
450
|
+
"tags": [
|
|
451
|
+
{
|
|
452
|
+
"text": "0.0.0",
|
|
453
|
+
"name": "since"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"docs": "The ID of the connection to execute the batch on.",
|
|
457
|
+
"complexTypes": [],
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "statement",
|
|
462
|
+
"tags": [
|
|
463
|
+
{
|
|
464
|
+
"text": "0.0.0",
|
|
465
|
+
"name": "since"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"text": "['INSERT INTO users (name, age) VALUES (?, ?)', 'UPDATE users SET age = ? WHERE name = ?']",
|
|
469
|
+
"name": "example"
|
|
470
|
+
}
|
|
471
|
+
],
|
|
472
|
+
"docs": "The SQL statements to execute in the batch.",
|
|
473
|
+
"complexTypes": [],
|
|
474
|
+
"type": "string[]"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "values",
|
|
478
|
+
"tags": [
|
|
479
|
+
{
|
|
480
|
+
"text": "0.0.0",
|
|
481
|
+
"name": "since"
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
"docs": "The transaction ID to use for the batch.\n\nOnly available on Android.",
|
|
485
|
+
"complexTypes": [
|
|
486
|
+
"Value"
|
|
487
|
+
],
|
|
488
|
+
"type": "Value[][] | undefined"
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "QueryResult",
|
|
494
|
+
"slug": "queryresult",
|
|
495
|
+
"docs": "",
|
|
496
|
+
"tags": [
|
|
497
|
+
{
|
|
498
|
+
"text": "0.0.0",
|
|
499
|
+
"name": "since"
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"methods": [],
|
|
503
|
+
"properties": [
|
|
504
|
+
{
|
|
505
|
+
"name": "rows",
|
|
506
|
+
"tags": [
|
|
507
|
+
{
|
|
508
|
+
"text": "0.0.0",
|
|
509
|
+
"name": "since"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"text": "[['Alice', 30], ['Bob', 25]]",
|
|
513
|
+
"name": "example"
|
|
514
|
+
}
|
|
515
|
+
],
|
|
516
|
+
"docs": "The values returned by the query.",
|
|
517
|
+
"complexTypes": [
|
|
518
|
+
"Value"
|
|
519
|
+
],
|
|
520
|
+
"type": "Value[][]"
|
|
521
|
+
}
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "QueryOptions",
|
|
526
|
+
"slug": "queryoptions",
|
|
527
|
+
"docs": "",
|
|
528
|
+
"tags": [
|
|
529
|
+
{
|
|
530
|
+
"text": "0.0.0",
|
|
531
|
+
"name": "since"
|
|
532
|
+
}
|
|
533
|
+
],
|
|
534
|
+
"methods": [],
|
|
535
|
+
"properties": [
|
|
536
|
+
{
|
|
537
|
+
"name": "connectionId",
|
|
538
|
+
"tags": [
|
|
539
|
+
{
|
|
540
|
+
"text": "0.0.0",
|
|
541
|
+
"name": "since"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"docs": "The ID of the connection to query.",
|
|
545
|
+
"complexTypes": [],
|
|
546
|
+
"type": "string"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "statement",
|
|
550
|
+
"tags": [
|
|
551
|
+
{
|
|
552
|
+
"text": "0.0.0",
|
|
553
|
+
"name": "since"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"text": "'SELECT name, age FROM users WHERE age > ?'",
|
|
557
|
+
"name": "example"
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
"docs": "The SQL statement to execute.",
|
|
561
|
+
"complexTypes": [],
|
|
562
|
+
"type": "string"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"name": "transactionId",
|
|
566
|
+
"tags": [
|
|
567
|
+
{
|
|
568
|
+
"text": "0.0.0",
|
|
569
|
+
"name": "since"
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
"docs": "The transaction ID to use for the query.\n\nOnly available on Android.",
|
|
573
|
+
"complexTypes": [],
|
|
574
|
+
"type": "string | undefined"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "values",
|
|
578
|
+
"tags": [
|
|
579
|
+
{
|
|
580
|
+
"text": "0.0.0",
|
|
581
|
+
"name": "since"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"text": "['Alice', 30]",
|
|
585
|
+
"name": "example"
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"docs": "The values to bind to the SQL statement.",
|
|
589
|
+
"complexTypes": [
|
|
590
|
+
"Value"
|
|
591
|
+
],
|
|
592
|
+
"type": "Value[] | undefined"
|
|
593
|
+
}
|
|
594
|
+
]
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "RollbackTransactionOptions",
|
|
598
|
+
"slug": "rollbacktransactionoptions",
|
|
599
|
+
"docs": "",
|
|
600
|
+
"tags": [
|
|
601
|
+
{
|
|
602
|
+
"text": "0.0.0",
|
|
603
|
+
"name": "since"
|
|
604
|
+
}
|
|
605
|
+
],
|
|
606
|
+
"methods": [],
|
|
607
|
+
"properties": [
|
|
608
|
+
{
|
|
609
|
+
"name": "connectionId",
|
|
610
|
+
"tags": [
|
|
611
|
+
{
|
|
612
|
+
"text": "0.0.0",
|
|
613
|
+
"name": "since"
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
"docs": "The ID of the connection to rollback the transaction on.",
|
|
617
|
+
"complexTypes": [],
|
|
618
|
+
"type": "string"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "transactionId",
|
|
622
|
+
"tags": [
|
|
623
|
+
{
|
|
624
|
+
"text": "0.0.0",
|
|
625
|
+
"name": "since"
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"docs": "The ID of the transaction to rollback.",
|
|
629
|
+
"complexTypes": [],
|
|
630
|
+
"type": "string"
|
|
631
|
+
}
|
|
632
|
+
]
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "SyncOptions",
|
|
636
|
+
"slug": "syncoptions",
|
|
637
|
+
"docs": "",
|
|
638
|
+
"tags": [
|
|
639
|
+
{
|
|
640
|
+
"text": "0.0.0",
|
|
641
|
+
"name": "since"
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
"methods": [],
|
|
645
|
+
"properties": [
|
|
646
|
+
{
|
|
647
|
+
"name": "connectionId",
|
|
648
|
+
"tags": [
|
|
649
|
+
{
|
|
650
|
+
"text": "0.0.0",
|
|
651
|
+
"name": "since"
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
"docs": "The ID of the connection to sync.",
|
|
655
|
+
"complexTypes": [],
|
|
656
|
+
"type": "string"
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
}
|
|
660
|
+
],
|
|
661
|
+
"enums": [],
|
|
662
|
+
"typeAliases": [
|
|
663
|
+
{
|
|
664
|
+
"name": "Value",
|
|
665
|
+
"slug": "value",
|
|
666
|
+
"docs": "",
|
|
667
|
+
"types": [
|
|
668
|
+
{
|
|
669
|
+
"text": "string",
|
|
670
|
+
"complexTypes": []
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"text": "number",
|
|
674
|
+
"complexTypes": []
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"text": "null",
|
|
678
|
+
"complexTypes": []
|
|
679
|
+
}
|
|
680
|
+
]
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"pluginConfigs": []
|
|
684
|
+
}
|