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.
Files changed (72) hide show
  1. package/LICENSE +202 -202
  2. package/README.md +8097 -7971
  3. package/bin/jsql +320 -320
  4. package/bin/jsql-server +90 -90
  5. package/bin/jsql-server-control.js +177 -177
  6. package/index.d.ts +385 -357
  7. package/index.js +124 -118
  8. package/lib/ast.js +214 -0
  9. package/lib/btree.js +413 -413
  10. package/lib/cache.js +328 -328
  11. package/lib/client.js +125 -125
  12. package/lib/database.js +1744 -1744
  13. package/lib/date-types.js +182 -182
  14. package/lib/errors.js +89 -89
  15. package/lib/jsql_format.js +497 -497
  16. package/lib/migrate.js +254 -254
  17. package/lib/mod.js +292 -292
  18. package/lib/mongo_server.js +607 -607
  19. package/lib/multiserver.js +140 -140
  20. package/lib/mysql_compat.js +413 -413
  21. package/lib/mysql_server.js +1237 -1237
  22. package/lib/native_client.js +732 -732
  23. package/lib/nedb_compat.js +506 -506
  24. package/lib/pg_server.js +864 -864
  25. package/lib/plugin.js +34 -34
  26. package/lib/query.js +815 -815
  27. package/lib/redis_server.js +571 -571
  28. package/lib/sql.js +3460 -2925
  29. package/lib/sqlite_compat.js +323 -323
  30. package/lib/sqlite_worker.js +264 -264
  31. package/lib/table.js +1304 -1304
  32. package/lib/tui.js +502 -502
  33. package/lib/wasm.js +1 -1
  34. package/lib/wasm_client.js +718 -718
  35. package/lib/web_ui.js +257 -257
  36. package/native/jsql-neo-native.node +0 -0
  37. package/nativesrc/jsql-neo-core/Cargo.lock +455 -455
  38. package/nativesrc/jsql-neo-core/Cargo.toml +24 -24
  39. package/nativesrc/jsql-neo-core/src/engine/hybrid.rs +455 -455
  40. package/nativesrc/jsql-neo-core/src/engine/memory.rs +168 -168
  41. package/nativesrc/jsql-neo-core/src/engine/mod.rs +62 -62
  42. package/nativesrc/jsql-neo-core/src/engine/table.rs +700 -700
  43. package/nativesrc/jsql-neo-core/src/lib.rs +2 -2
  44. package/nativesrc/jsql-neo-core/src/storage/mod.rs +2 -2
  45. package/nativesrc/jsql-neo-core/src/storage/persistent.rs +1 -1
  46. package/nativesrc/jsql-neo-core/src/storage/wal.rs +85 -85
  47. package/nativesrc/jsql-neo-core/src/types.rs +93 -93
  48. package/nativesrc/jsql-neo-native/Cargo.lock +606 -606
  49. package/nativesrc/jsql-neo-native/Cargo.toml +16 -16
  50. package/nativesrc/jsql-neo-native/build.rs +3 -3
  51. package/nativesrc/jsql-neo-native/package.json +7 -7
  52. package/nativesrc/jsql-neo-native/src/lib.rs +269 -269
  53. package/nativesrc/jsql-neo-wasm/Cargo.lock +465 -465
  54. package/nativesrc/jsql-neo-wasm/Cargo.toml +15 -15
  55. package/nativesrc/jsql-neo-wasm/src/lib.rs +447 -447
  56. package/package.json +87 -86
  57. package/postinstall.js +158 -158
  58. package/test/btree.test.js +128 -128
  59. package/test/coverage.js +187 -187
  60. package/test/join.test.js +110 -110
  61. package/test/native.test.js +158 -158
  62. package/test/regress-5.1.0.js +271 -271
  63. package/test/smoke.js +58 -58
  64. package/test/sql-parser.test.js +273 -0
  65. package/test/wasm.test.js +110 -110
  66. package/wasm/browser.d.ts +89 -89
  67. package/wasm/browser.mjs +569 -569
  68. package/wasm/browser_bg.mjs +597 -597
  69. package/wasm/jsql_neo_wasm.d.ts +38 -38
  70. package/wasm/jsql_neo_wasm.js +520 -520
  71. package/wasm/jsql_neo_wasm_bg.wasm.d.ts +26 -26
  72. package/wasm/package.json +11 -11
@@ -1,38 +1,38 @@
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;
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;