@v1nt1248/3nclient-lib 0.0.12 → 0.0.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/dist/components/index.d.ts +3 -1
- package/dist/components/ui3n-virtual-scroll.vue.d.ts +34 -0
- package/dist/libs/index.d.ts +4 -0
- package/dist/libs/index.js +4 -0
- package/dist/libs/ipc-service-caller.d.ts +13 -0
- package/dist/libs/ipc-service-caller.js +6129 -0
- package/dist/libs/ipc-service.d.ts +61 -0
- package/dist/libs/ipc-service.js +6337 -0
- package/dist/libs/serialization-for-ipc/json-n-binary.d.ts +5 -0
- package/dist/libs/serialization-for-ipc/json-n-binary.js +6040 -0
- package/dist/libs/sqlite-on-3nstorage/index.d.ts +49 -0
- package/dist/libs/sqlite-on-3nstorage/index.js +2808 -0
- package/dist/libs/sqlite-on-3nstorage/sqljs.d.ts +279 -0
- package/dist/libs/sqlite-on-3nstorage/synced.d.ts +73 -0
- package/dist/style.css +1 -1
- package/dist/ui-3n-lib.js +3927 -3876
- package/package.json +3 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Database as DBClass, BindParams as QueryParams, QueryExecResult as QueryResult } from './sqljs';
|
|
2
|
+
import { SingleProc, Action } from './synced';
|
|
3
|
+
export declare type Database = DBClass;
|
|
4
|
+
export declare type BindParams = QueryParams;
|
|
5
|
+
export declare type QueryExecResult = QueryResult;
|
|
6
|
+
declare type WritableFile = web3n.files.WritableFile;
|
|
7
|
+
export interface SaveOpts {
|
|
8
|
+
skipUpload?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class SQLiteOn3NStorage {
|
|
11
|
+
protected readonly database: Database;
|
|
12
|
+
protected readonly file: WritableFile;
|
|
13
|
+
protected readonly syncProc: SingleProc;
|
|
14
|
+
protected constructor(database: Database, file: WritableFile);
|
|
15
|
+
static makeAndStart(file: WritableFile): Promise<SQLiteOn3NStorage>;
|
|
16
|
+
private start;
|
|
17
|
+
saveToFile(opts?: SaveOpts): Promise<void>;
|
|
18
|
+
get db(): Database;
|
|
19
|
+
sync<T>(action: Action<T>): Promise<T>;
|
|
20
|
+
listTables(): string[];
|
|
21
|
+
}
|
|
22
|
+
export declare function objectFromQueryExecResult<T>(sqlResult: QueryExecResult): Array<T>;
|
|
23
|
+
export declare class TableColumnsAndParams<ColumnDefs extends object> {
|
|
24
|
+
readonly name: string;
|
|
25
|
+
private readonly columnDefs;
|
|
26
|
+
readonly c: {
|
|
27
|
+
[columnName in keyof ColumnDefs]: string;
|
|
28
|
+
};
|
|
29
|
+
readonly cReversed: {
|
|
30
|
+
[snakedColName: string]: keyof ColumnDefs;
|
|
31
|
+
};
|
|
32
|
+
readonly p: {
|
|
33
|
+
[columnName in keyof ColumnDefs]: string;
|
|
34
|
+
};
|
|
35
|
+
readonly q: {
|
|
36
|
+
[columnName in keyof ColumnDefs]: string;
|
|
37
|
+
};
|
|
38
|
+
constructor(name: string, columnDefs: ColumnDefs);
|
|
39
|
+
private toC;
|
|
40
|
+
toParams<T extends {
|
|
41
|
+
[columnName in keyof ColumnDefs]: any;
|
|
42
|
+
}>(value: Partial<T>, throwOnUnknownField?: boolean): any;
|
|
43
|
+
getFromQueryExecResult<T>(sqlResult: QueryExecResult): Array<T>;
|
|
44
|
+
get insertQuery(): string;
|
|
45
|
+
updateQuery(withTabName: boolean, columns?: (keyof ColumnDefs)[] | undefined, skipColumns?: boolean): string;
|
|
46
|
+
get columnsCreateSection(): string;
|
|
47
|
+
selectQuery(columnsToSelect: (keyof ColumnDefs)[] | string, ...whereAndColEqual: (keyof ColumnDefs)[]): string;
|
|
48
|
+
}
|
|
49
|
+
export {};
|