@rljson/io-sqlite 0.0.8 → 0.0.10
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/dist/README.architecture.md +9 -9
- package/dist/README.blog.md +11 -11
- package/dist/README.contributors.md +32 -32
- package/dist/README.md +24 -24
- package/dist/README.piano.md +42 -42
- package/dist/README.public.md +15 -15
- package/dist/README.trouble.md +23 -23
- package/dist/io-sqlite.d.ts +44 -3
- package/dist/io-sqlite.js +948 -3
- package/dist/src/example.ts +7 -26
- package/package.json +69 -62
package/dist/README.trouble.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
@license
|
|
3
|
-
Copyright (c) 2025 Rljson
|
|
4
|
-
|
|
5
|
-
Use of this source code is governed by terms that can be
|
|
6
|
-
found in the LICENSE file in the root of this package.
|
|
7
|
-
-->
|
|
8
|
-
|
|
9
|
-
# Trouble shooting
|
|
10
|
-
|
|
11
|
-
## Table of contents <!-- omit in toc -->
|
|
12
|
-
|
|
13
|
-
- [Vscode Windows: Debugging is not working](#vscode-windows-debugging-is-not-working)
|
|
14
|
-
|
|
15
|
-
## Vscode Windows: Debugging is not working
|
|
16
|
-
|
|
17
|
-
Date: 2025-03-08
|
|
18
|
-
|
|
19
|
-
⚠️ IMPORTANT: On Windows, please check out the repo on drive C. There is a bug
|
|
20
|
-
in the VS Code Vitest extension (v1.14.4), which prevents test debugging from
|
|
21
|
-
working: <https://github.com/vitest-dev/vscode/issues/548> Please check from
|
|
22
|
-
time to time if the issue has been fixed and remove this note once it is
|
|
23
|
-
resolved.
|
|
1
|
+
<!--
|
|
2
|
+
@license
|
|
3
|
+
Copyright (c) 2025 Rljson
|
|
4
|
+
|
|
5
|
+
Use of this source code is governed by terms that can be
|
|
6
|
+
found in the LICENSE file in the root of this package.
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
# Trouble shooting
|
|
10
|
+
|
|
11
|
+
## Table of contents <!-- omit in toc -->
|
|
12
|
+
|
|
13
|
+
- [Vscode Windows: Debugging is not working](#vscode-windows-debugging-is-not-working)
|
|
14
|
+
|
|
15
|
+
## Vscode Windows: Debugging is not working
|
|
16
|
+
|
|
17
|
+
Date: 2025-03-08
|
|
18
|
+
|
|
19
|
+
⚠️ IMPORTANT: On Windows, please check out the repo on drive C. There is a bug
|
|
20
|
+
in the VS Code Vitest extension (v1.14.4), which prevents test debugging from
|
|
21
|
+
working: <https://github.com/vitest-dev/vscode/issues/548> Please check from
|
|
22
|
+
time to time if the issue has been fixed and remove this note once it is
|
|
23
|
+
resolved.
|
package/dist/io-sqlite.d.ts
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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;
|
|
4
45
|
}
|