jsql-neo 5.4.2 → 5.5.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/LICENSE +202 -202
- package/README.md +8097 -7971
- package/bin/jsql +320 -320
- package/bin/jsql-server +90 -90
- package/bin/jsql-server-control.js +177 -177
- package/index.d.ts +385 -357
- package/index.js +124 -118
- package/lib/ast.js +214 -0
- package/lib/btree.js +413 -413
- package/lib/cache.js +328 -328
- package/lib/client.js +125 -125
- package/lib/database.js +1744 -1744
- package/lib/date-types.js +182 -182
- package/lib/errors.js +89 -89
- package/lib/jsql_format.js +497 -497
- package/lib/migrate.js +254 -254
- package/lib/mod.js +292 -292
- package/lib/mongo_server.js +607 -607
- package/lib/multiserver.js +140 -140
- package/lib/mysql_compat.js +413 -413
- package/lib/mysql_server.js +1237 -1237
- package/lib/native_client.js +732 -732
- package/lib/nedb_compat.js +506 -506
- package/lib/pg_server.js +864 -864
- package/lib/plugin.js +34 -34
- package/lib/query.js +815 -815
- package/lib/redis_server.js +571 -571
- package/lib/sql.js +3460 -2925
- package/lib/sqlite_compat.js +323 -323
- package/lib/sqlite_worker.js +264 -264
- package/lib/table.js +1304 -1304
- package/lib/tui.js +502 -502
- package/lib/wasm.js +1 -1
- package/lib/wasm_client.js +718 -718
- package/lib/web_ui.js +257 -257
- package/native/jsql-neo-native.node +0 -0
- package/nativesrc/jsql-neo-core/Cargo.lock +455 -455
- package/nativesrc/jsql-neo-core/Cargo.toml +24 -24
- package/nativesrc/jsql-neo-core/src/engine/hybrid.rs +455 -455
- package/nativesrc/jsql-neo-core/src/engine/memory.rs +168 -168
- package/nativesrc/jsql-neo-core/src/engine/mod.rs +62 -62
- package/nativesrc/jsql-neo-core/src/engine/table.rs +700 -700
- package/nativesrc/jsql-neo-core/src/lib.rs +2 -2
- package/nativesrc/jsql-neo-core/src/storage/mod.rs +2 -2
- package/nativesrc/jsql-neo-core/src/storage/persistent.rs +1 -1
- package/nativesrc/jsql-neo-core/src/storage/wal.rs +85 -85
- package/nativesrc/jsql-neo-core/src/types.rs +93 -93
- package/nativesrc/jsql-neo-native/Cargo.lock +606 -606
- package/nativesrc/jsql-neo-native/Cargo.toml +16 -16
- package/nativesrc/jsql-neo-native/build.rs +3 -3
- package/nativesrc/jsql-neo-native/package.json +7 -7
- package/nativesrc/jsql-neo-native/src/lib.rs +269 -269
- package/nativesrc/jsql-neo-wasm/Cargo.lock +465 -465
- package/nativesrc/jsql-neo-wasm/Cargo.toml +15 -15
- package/nativesrc/jsql-neo-wasm/src/lib.rs +447 -447
- package/package.json +87 -86
- package/postinstall.js +158 -158
- package/test/btree.test.js +128 -128
- package/test/coverage.js +187 -187
- package/test/join.test.js +110 -110
- package/test/native.test.js +158 -158
- package/test/regress-5.1.0.js +271 -271
- package/test/smoke.js +58 -58
- package/test/sql-parser.test.js +273 -0
- package/test/wasm.test.js +110 -110
- package/wasm/browser.d.ts +89 -89
- package/wasm/browser.mjs +569 -569
- package/wasm/browser_bg.mjs +597 -597
- package/wasm/jsql_neo_wasm.d.ts +38 -38
- package/wasm/jsql_neo_wasm.js +520 -520
- package/wasm/jsql_neo_wasm_bg.wasm.d.ts +26 -26
- package/wasm/package.json +11 -11
package/wasm/browser.d.ts
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
export function jsql_begin_tx(): string;
|
|
5
|
-
|
|
6
|
-
export function jsql_commit_tx(tx_id: string): string;
|
|
7
|
-
|
|
8
|
-
export function jsql_count(table: string): string;
|
|
9
|
-
|
|
10
|
-
export function jsql_create_table(name: string, schema_json: string): string;
|
|
11
|
-
|
|
12
|
-
export function jsql_drop_table(name: string): string;
|
|
13
|
-
|
|
14
|
-
export function jsql_find(table: string, filter_json: string, limit: number, offset: number): string;
|
|
15
|
-
|
|
16
|
-
export function jsql_find_by_id(table: string, id: bigint): string;
|
|
17
|
-
|
|
18
|
-
export function jsql_find_by_ids(table: string, ids_json: string): string;
|
|
19
|
-
|
|
20
|
-
export function jsql_insert(table: string, data_json: string): string;
|
|
21
|
-
|
|
22
|
-
export function jsql_insert_buf(table: string, data: Uint8Array): string;
|
|
23
|
-
|
|
24
|
-
export function jsql_insert_buf_count(table: string, data: Uint8Array): string;
|
|
25
|
-
|
|
26
|
-
export function jsql_insert_json(table: string, json: string): string;
|
|
27
|
-
|
|
28
|
-
export function jsql_remove_by_id(table: string, id: bigint): string;
|
|
29
|
-
|
|
30
|
-
export function jsql_remove_by_ids(table: string, ids_json: string): string;
|
|
31
|
-
|
|
32
|
-
export function jsql_reset(): void;
|
|
33
|
-
|
|
34
|
-
export function jsql_rollback_tx(tx_id: string): string;
|
|
35
|
-
|
|
36
|
-
export function jsql_update_by_id(table: string, id: bigint, data_json: string): string;
|
|
37
|
-
|
|
38
|
-
export function jsql_update_by_ids(table: string, batch_json: string): string;
|
|
39
|
-
|
|
40
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
41
|
-
|
|
42
|
-
export interface InitOutput {
|
|
43
|
-
readonly memory: WebAssembly.Memory;
|
|
44
|
-
readonly jsql_begin_tx: () => [number, number];
|
|
45
|
-
readonly jsql_commit_tx: (a: number, b: number) => [number, number];
|
|
46
|
-
readonly jsql_count: (a: number, b: number) => [number, number];
|
|
47
|
-
readonly jsql_create_table: (a: number, b: number, c: number, d: number) => [number, number];
|
|
48
|
-
readonly jsql_drop_table: (a: number, b: number) => [number, number];
|
|
49
|
-
readonly jsql_find: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
50
|
-
readonly jsql_find_by_id: (a: number, b: number, c: bigint) => [number, number];
|
|
51
|
-
readonly jsql_find_by_ids: (a: number, b: number, c: number, d: number) => [number, number];
|
|
52
|
-
readonly jsql_insert: (a: number, b: number, c: number, d: number) => [number, number];
|
|
53
|
-
readonly jsql_insert_buf: (a: number, b: number, c: number, d: number) => [number, number];
|
|
54
|
-
readonly jsql_insert_buf_count: (a: number, b: number, c: number, d: number) => [number, number];
|
|
55
|
-
readonly jsql_insert_json: (a: number, b: number, c: number, d: number) => [number, number];
|
|
56
|
-
readonly jsql_remove_by_id: (a: number, b: number, c: bigint) => [number, number];
|
|
57
|
-
readonly jsql_remove_by_ids: (a: number, b: number, c: number, d: number) => [number, number];
|
|
58
|
-
readonly jsql_rollback_tx: (a: number, b: number) => [number, number];
|
|
59
|
-
readonly jsql_update_by_id: (a: number, b: number, c: bigint, d: number, e: number) => [number, number];
|
|
60
|
-
readonly jsql_update_by_ids: (a: number, b: number, c: number, d: number) => [number, number];
|
|
61
|
-
readonly jsql_reset: () => void;
|
|
62
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
63
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
64
|
-
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
65
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
66
|
-
readonly __wbindgen_start: () => void;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
73
|
-
* a precompiled `WebAssembly.Module`.
|
|
74
|
-
*
|
|
75
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
76
|
-
*
|
|
77
|
-
* @returns {InitOutput}
|
|
78
|
-
*/
|
|
79
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
83
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
84
|
-
*
|
|
85
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
86
|
-
*
|
|
87
|
-
* @returns {Promise<InitOutput>}
|
|
88
|
-
*/
|
|
89
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export function jsql_begin_tx(): string;
|
|
5
|
+
|
|
6
|
+
export function jsql_commit_tx(tx_id: string): string;
|
|
7
|
+
|
|
8
|
+
export function jsql_count(table: string): string;
|
|
9
|
+
|
|
10
|
+
export function jsql_create_table(name: string, schema_json: string): string;
|
|
11
|
+
|
|
12
|
+
export function jsql_drop_table(name: string): string;
|
|
13
|
+
|
|
14
|
+
export function jsql_find(table: string, filter_json: string, limit: number, offset: number): string;
|
|
15
|
+
|
|
16
|
+
export function jsql_find_by_id(table: string, id: bigint): string;
|
|
17
|
+
|
|
18
|
+
export function jsql_find_by_ids(table: string, ids_json: string): string;
|
|
19
|
+
|
|
20
|
+
export function jsql_insert(table: string, data_json: string): string;
|
|
21
|
+
|
|
22
|
+
export function jsql_insert_buf(table: string, data: Uint8Array): string;
|
|
23
|
+
|
|
24
|
+
export function jsql_insert_buf_count(table: string, data: Uint8Array): string;
|
|
25
|
+
|
|
26
|
+
export function jsql_insert_json(table: string, json: string): string;
|
|
27
|
+
|
|
28
|
+
export function jsql_remove_by_id(table: string, id: bigint): string;
|
|
29
|
+
|
|
30
|
+
export function jsql_remove_by_ids(table: string, ids_json: string): string;
|
|
31
|
+
|
|
32
|
+
export function jsql_reset(): void;
|
|
33
|
+
|
|
34
|
+
export function jsql_rollback_tx(tx_id: string): string;
|
|
35
|
+
|
|
36
|
+
export function jsql_update_by_id(table: string, id: bigint, data_json: string): string;
|
|
37
|
+
|
|
38
|
+
export function jsql_update_by_ids(table: string, batch_json: string): string;
|
|
39
|
+
|
|
40
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
41
|
+
|
|
42
|
+
export interface InitOutput {
|
|
43
|
+
readonly memory: WebAssembly.Memory;
|
|
44
|
+
readonly jsql_begin_tx: () => [number, number];
|
|
45
|
+
readonly jsql_commit_tx: (a: number, b: number) => [number, number];
|
|
46
|
+
readonly jsql_count: (a: number, b: number) => [number, number];
|
|
47
|
+
readonly jsql_create_table: (a: number, b: number, c: number, d: number) => [number, number];
|
|
48
|
+
readonly jsql_drop_table: (a: number, b: number) => [number, number];
|
|
49
|
+
readonly jsql_find: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
50
|
+
readonly jsql_find_by_id: (a: number, b: number, c: bigint) => [number, number];
|
|
51
|
+
readonly jsql_find_by_ids: (a: number, b: number, c: number, d: number) => [number, number];
|
|
52
|
+
readonly jsql_insert: (a: number, b: number, c: number, d: number) => [number, number];
|
|
53
|
+
readonly jsql_insert_buf: (a: number, b: number, c: number, d: number) => [number, number];
|
|
54
|
+
readonly jsql_insert_buf_count: (a: number, b: number, c: number, d: number) => [number, number];
|
|
55
|
+
readonly jsql_insert_json: (a: number, b: number, c: number, d: number) => [number, number];
|
|
56
|
+
readonly jsql_remove_by_id: (a: number, b: number, c: bigint) => [number, number];
|
|
57
|
+
readonly jsql_remove_by_ids: (a: number, b: number, c: number, d: number) => [number, number];
|
|
58
|
+
readonly jsql_rollback_tx: (a: number, b: number) => [number, number];
|
|
59
|
+
readonly jsql_update_by_id: (a: number, b: number, c: bigint, d: number, e: number) => [number, number];
|
|
60
|
+
readonly jsql_update_by_ids: (a: number, b: number, c: number, d: number) => [number, number];
|
|
61
|
+
readonly jsql_reset: () => void;
|
|
62
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
63
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
64
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
65
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
66
|
+
readonly __wbindgen_start: () => void;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
73
|
+
* a precompiled `WebAssembly.Module`.
|
|
74
|
+
*
|
|
75
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
76
|
+
*
|
|
77
|
+
* @returns {InitOutput}
|
|
78
|
+
*/
|
|
79
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
83
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
84
|
+
*
|
|
85
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
86
|
+
*
|
|
87
|
+
* @returns {Promise<InitOutput>}
|
|
88
|
+
*/
|
|
89
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|