@rljson/io-sqlite 0.0.10 → 0.0.12
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/LICENSE +21 -21
- package/README.architecture.md +9 -9
- package/README.blog.md +11 -11
- package/README.contributors.md +32 -32
- package/README.md +24 -24
- package/README.piano.md +42 -42
- package/README.public.md +15 -15
- package/README.trouble.md +23 -23
- package/package.json +69 -69
- package/dist/README.architecture.md +0 -9
- package/dist/README.blog.md +0 -11
- package/dist/README.contributors.md +0 -32
- package/dist/README.md +0 -24
- package/dist/README.piano.md +0 -42
- package/dist/README.public.md +0 -15
- package/dist/README.trouble.md +0 -23
- package/dist/example.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/io-sqlite.d.ts +0 -45
- package/dist/io-sqlite.js +0 -955
- package/dist/src/example.ts +0 -7
package/dist/example.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const example: () => void;
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IoSqlite } from './io-sqlite.ts';
|
package/dist/io-sqlite.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Io } from '@rljson/io';
|
|
2
|
-
import { JsonValue } from '@rljson/json';
|
|
3
|
-
import { Rljson } from '@rljson/rljson';
|
|
4
|
-
/**
|
|
5
|
-
* Sqlite implementation of the Rljson Io interface.
|
|
6
|
-
*/
|
|
7
|
-
export declare class IoSqlite implements Io {
|
|
8
|
-
dbPath: string;
|
|
9
|
-
private _db;
|
|
10
|
-
private _dbPath?;
|
|
11
|
-
constructor(dbPath: string);
|
|
12
|
-
deleteDatabase(): Promise<void>;
|
|
13
|
-
isReady(): Promise<void>;
|
|
14
|
-
dump(): Promise<Rljson>;
|
|
15
|
-
dumpTable(request: {
|
|
16
|
-
table: string;
|
|
17
|
-
}): Promise<Rljson>;
|
|
18
|
-
readRow(request: {
|
|
19
|
-
table: string;
|
|
20
|
-
rowHash: string;
|
|
21
|
-
}): Promise<Rljson>;
|
|
22
|
-
readRows(request: {
|
|
23
|
-
table: string;
|
|
24
|
-
where: {
|
|
25
|
-
[column: string]: JsonValue;
|
|
26
|
-
};
|
|
27
|
-
}): Promise<Rljson>;
|
|
28
|
-
write(request: {
|
|
29
|
-
data: Rljson;
|
|
30
|
-
}): Promise<void>;
|
|
31
|
-
createTable(request: {
|
|
32
|
-
tableCfg: string;
|
|
33
|
-
}): Promise<void>;
|
|
34
|
-
tables(): Promise<Rljson>;
|
|
35
|
-
private _isReady;
|
|
36
|
-
private _init;
|
|
37
|
-
private _initTableCfgs;
|
|
38
|
-
private _createTable;
|
|
39
|
-
private _tables;
|
|
40
|
-
private _readRow;
|
|
41
|
-
private _readRows;
|
|
42
|
-
private _dump;
|
|
43
|
-
private _dumpTable;
|
|
44
|
-
private _write;
|
|
45
|
-
}
|