@aiao/rxdb-adapter-sqliteai 0.0.24 → 0.0.26
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 +2 -2
- package/dist/RxDBAdapterSqliteai-Bebaerj4.js +63 -0
- package/dist/assets/sqlite3-opfs-async-proxy-CPArLPLU.js +1 -0
- package/dist/assets/sqlite3-worker1-bundler-friendly-C9ENWE60.js +3 -0
- package/dist/assets/sqliteai-test.worker-CTOPs2O0.js +23 -0
- package/dist/create_sqlite_client.d.ts.map +1 -1
- package/dist/index.js +3 -59
- package/dist/testing.d.ts +3 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +1537 -0
- package/package.json +31 -5
- package/src/create_sqlite_client.ts +15 -3
- package/src/testing.ts +21 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_sqlite_client.d.ts","sourceRoot":"","sources":["../src/create_sqlite_client.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"create_sqlite_client.d.ts","sourceRoot":"","sources":["../src/create_sqlite_client.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAA4B,MAAM,yBAAyB,CAAC;AAGpF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAyB5G"}
|
package/dist/index.js
CHANGED
|
@@ -1,59 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var b, x;
|
|
5
|
-
async function S(e) {
|
|
6
|
-
let t = m(e), n = () => b && x && p(x, t) ? b : void 0;
|
|
7
|
-
return n() || h(async () => {
|
|
8
|
-
let r = n();
|
|
9
|
-
if (r) return r;
|
|
10
|
-
let i = c(e), a = await g(e, async () => await _({ warn: u }, async () => {
|
|
11
|
-
let e = await y(i);
|
|
12
|
-
return s(e), e;
|
|
13
|
-
}));
|
|
14
|
-
return a.config && (a.config.warn = u), b = a, x = t, a;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/SqliteaiClient.ts
|
|
19
|
-
var C = class extends t {
|
|
20
|
-
get clientName() {
|
|
21
|
-
return "sqliteai";
|
|
22
|
-
}
|
|
23
|
-
loadModule(e) {
|
|
24
|
-
return S(e);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/create_sqlite_client.ts
|
|
29
|
-
async function w(e, t) {
|
|
30
|
-
let n = {
|
|
31
|
-
opfs: t.opfs,
|
|
32
|
-
wasmPath: t.wasmPath,
|
|
33
|
-
opfsProxyPath: t.opfsProxyPath,
|
|
34
|
-
locateFile: t.locateFile,
|
|
35
|
-
print: t.print,
|
|
36
|
-
printErr: t.printErr,
|
|
37
|
-
cacheSizeKb: t.cacheSizeKb,
|
|
38
|
-
batchTimeout: t.batchTimeout,
|
|
39
|
-
opfsFallback: t.opfsFallback
|
|
40
|
-
};
|
|
41
|
-
o(n, t);
|
|
42
|
-
let r = v(new C(), t);
|
|
43
|
-
return await r.init(e, n), r;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/sqliteai.interface.ts
|
|
47
|
-
var T = "sqliteai", E = class extends r {
|
|
48
|
-
options;
|
|
49
|
-
#e;
|
|
50
|
-
name = T;
|
|
51
|
-
constructor(e, t) {
|
|
52
|
-
super(e, t), this.options = t, this.#e = e.config.dbName;
|
|
53
|
-
}
|
|
54
|
-
async createClient() {
|
|
55
|
-
return w(this.#e, this.options);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
export { e as BATCH_TIMEOUT, n as ROWID, i as RxDBAdapterSqliteError, E as RxDBAdapterSqliteai, a as SqliteRepository, C as SqliteaiClient, l as buildRuleGroup, w as createSqliteClient, d as sqliteGetTableName, f as sqliteGetTableNameByMetadata, S as sqliteaiLoad };
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./RxDBAdapterSqliteai-Bebaerj4.js";
|
|
2
|
+
import { BATCH_TIMEOUT as i, ROWID as a, RxDBAdapterSqliteError as o, SqliteRepository as s, buildRuleGroup as c, get_table_name as l, get_table_name_by_metadata as u } from "@aiao/rxdb-adapter-sqlite-core";
|
|
3
|
+
export { i as BATCH_TIMEOUT, a as ROWID, o as RxDBAdapterSqliteError, r as RxDBAdapterSqliteai, s as SqliteRepository, n as SqliteaiClient, c as buildRuleGroup, t as createSqliteClient, l as sqliteGetTableName, u as sqliteGetTableNameByMetadata, e as sqliteaiLoad };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAM7E,eAAO,MAAM,eAAe,EAAE,cAAkF,CAAC"}
|