flatsql 3.11.1 → 3.12.1
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/README.md +61 -795
- package/bin/flatsql.mjs +76 -0
- package/cpp/README.md +18 -0
- package/cpp/include/flatsql/flatsql.h +162 -0
- package/cpp/include/flatsql/flatsql_io.h +159 -0
- package/docs/API-3.12.md +126 -0
- package/package.json +28 -123
- package/wasm/flatsql.wasm +0 -0
- package/wasm/index.d.ts +61 -548
- package/wasm/index.js +280 -1281
- package/wasm/integrity.json +6 -26
- package/wasm/runtime/LICENSE.sdk.txt +190 -0
- package/wasm/runtime/NOTICE.txt +2 -0
- package/wasm/runtime/browser-guest.mjs +1 -0
- package/wasm/runtime/browser-host.mjs +1 -0
- package/wasm/runtime/node-guest.mjs +2 -0
- package/wasm/runtime/node-host.mjs +5 -0
- package/wasm/runtime/opfsIoWorker.mjs +1 -0
- package/wasm/runtime/wasiThreadBrowserWorker.mjs +1 -0
- package/dist/artifacts/index.d.ts +0 -3
- package/dist/artifacts/index.d.ts.map +0 -1
- package/dist/artifacts/index.js +0 -3
- package/dist/artifacts/index.js.map +0 -1
- package/dist/artifacts/transport.d.ts +0 -5
- package/dist/artifacts/transport.d.ts.map +0 -1
- package/dist/artifacts/transport.js +0 -45
- package/dist/artifacts/transport.js.map +0 -1
- package/dist/artifacts/types.d.ts +0 -34
- package/dist/artifacts/types.d.ts.map +0 -1
- package/dist/artifacts/types.js +0 -2
- package/dist/artifacts/types.js.map +0 -1
- package/dist/btree/btree.d.ts +0 -34
- package/dist/btree/btree.d.ts.map +0 -1
- package/dist/btree/btree.js +0 -234
- package/dist/btree/btree.js.map +0 -1
- package/dist/btree/index.d.ts +0 -3
- package/dist/btree/index.d.ts.map +0 -1
- package/dist/btree/index.js +0 -3
- package/dist/btree/index.js.map +0 -1
- package/dist/btree/types.d.ts +0 -36
- package/dist/btree/types.d.ts.map +0 -1
- package/dist/btree/types.js +0 -55
- package/dist/btree/types.js.map +0 -1
- package/dist/cluster/index.d.ts +0 -11
- package/dist/cluster/index.d.ts.map +0 -1
- package/dist/cluster/index.js +0 -59
- package/dist/cluster/index.js.map +0 -1
- package/dist/response/artifact.d.ts +0 -4
- package/dist/response/artifact.d.ts.map +0 -1
- package/dist/response/artifact.js +0 -102
- package/dist/response/artifact.js.map +0 -1
- package/dist/response/cache-key.d.ts +0 -6
- package/dist/response/cache-key.d.ts.map +0 -1
- package/dist/response/cache-key.js +0 -114
- package/dist/response/cache-key.js.map +0 -1
- package/dist/response/index.d.ts +0 -5
- package/dist/response/index.d.ts.map +0 -1
- package/dist/response/index.js +0 -5
- package/dist/response/index.js.map +0 -1
- package/dist/response/memory-cache.d.ts +0 -17
- package/dist/response/memory-cache.d.ts.map +0 -1
- package/dist/response/memory-cache.js +0 -76
- package/dist/response/memory-cache.js.map +0 -1
- package/dist/response/types.d.ts +0 -57
- package/dist/response/types.d.ts.map +0 -1
- package/dist/response/types.js +0 -2
- package/dist/response/types.js.map +0 -1
- package/dist/schema/index.d.ts +0 -3
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js +0 -3
- package/dist/schema/index.js.map +0 -1
- package/dist/schema/parser.d.ts +0 -25
- package/dist/schema/parser.d.ts.map +0 -1
- package/dist/schema/parser.js +0 -474
- package/dist/schema/parser.js.map +0 -1
- package/dist/schema/types.d.ts +0 -33
- package/dist/schema/types.d.ts.map +0 -1
- package/dist/schema/types.js +0 -29
- package/dist/schema/types.js.map +0 -1
- package/dist/standalone/index.d.ts +0 -3
- package/dist/standalone/index.d.ts.map +0 -1
- package/dist/standalone/index.js +0 -3
- package/dist/standalone/index.js.map +0 -1
- package/dist/standalone/process-client.d.ts +0 -85
- package/dist/standalone/process-client.d.ts.map +0 -1
- package/dist/standalone/process-client.js +0 -537
- package/dist/standalone/process-client.js.map +0 -1
- package/dist/standalone/wasmedge-runner.d.ts +0 -19
- package/dist/standalone/wasmedge-runner.d.ts.map +0 -1
- package/dist/standalone/wasmedge-runner.js +0 -108
- package/dist/standalone/wasmedge-runner.js.map +0 -1
- package/dist/storage/index.d.ts +0 -3
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/index.js +0 -3
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/stacked-flatbuffers.d.ts +0 -38
- package/dist/storage/stacked-flatbuffers.d.ts.map +0 -1
- package/dist/storage/stacked-flatbuffers.js +0 -253
- package/dist/storage/stacked-flatbuffers.js.map +0 -1
- package/dist/storage/types.d.ts +0 -23
- package/dist/storage/types.d.ts.map +0 -1
- package/dist/storage/types.js +0 -27
- package/dist/storage/types.js.map +0 -1
- package/dist/stress/aggregate.d.ts +0 -3
- package/dist/stress/aggregate.d.ts.map +0 -1
- package/dist/stress/aggregate.js +0 -61
- package/dist/stress/aggregate.js.map +0 -1
- package/dist/stress/docker-compose.d.ts +0 -17
- package/dist/stress/docker-compose.d.ts.map +0 -1
- package/dist/stress/docker-compose.js +0 -156
- package/dist/stress/docker-compose.js.map +0 -1
- package/dist/stress/index.d.ts +0 -10
- package/dist/stress/index.d.ts.map +0 -1
- package/dist/stress/index.js +0 -10
- package/dist/stress/index.js.map +0 -1
- package/dist/stress/metrics.d.ts +0 -3
- package/dist/stress/metrics.d.ts.map +0 -1
- package/dist/stress/metrics.js +0 -83
- package/dist/stress/metrics.js.map +0 -1
- package/dist/stress/native-publish-event-workload.d.ts +0 -3
- package/dist/stress/native-publish-event-workload.d.ts.map +0 -1
- package/dist/stress/native-publish-event-workload.js +0 -465
- package/dist/stress/native-publish-event-workload.js.map +0 -1
- package/dist/stress/production-gate.d.ts +0 -4
- package/dist/stress/production-gate.d.ts.map +0 -1
- package/dist/stress/production-gate.js +0 -12
- package/dist/stress/production-gate.js.map +0 -1
- package/dist/stress/report.d.ts +0 -3
- package/dist/stress/report.d.ts.map +0 -1
- package/dist/stress/report.js +0 -174
- package/dist/stress/report.js.map +0 -1
- package/dist/stress/sds-discovery.d.ts +0 -4
- package/dist/stress/sds-discovery.d.ts.map +0 -1
- package/dist/stress/sds-discovery.js +0 -40
- package/dist/stress/sds-discovery.js.map +0 -1
- package/dist/stress/smoke-runner.d.ts +0 -3
- package/dist/stress/smoke-runner.d.ts.map +0 -1
- package/dist/stress/smoke-runner.js +0 -64
- package/dist/stress/smoke-runner.js.map +0 -1
- package/dist/stress/types.d.ts +0 -219
- package/dist/stress/types.d.ts.map +0 -1
- package/dist/stress/types.js +0 -2
- package/dist/stress/types.js.map +0 -1
- package/dist/stress/workload.d.ts +0 -6
- package/dist/stress/workload.d.ts.map +0 -1
- package/dist/stress/workload.js +0 -144
- package/dist/stress/workload.js.map +0 -1
- package/docs/PARTITION-STORE-WASM.md +0 -338
- package/docs/PARTITION-STORE.md +0 -2380
- package/docs/agents/response-artifacts.md +0 -65
- package/docs/response-artifacts.md +0 -86
- package/scripts/stress-docker.sh +0 -279
- package/sdm/flatsql-spatial.wasm +0 -0
- package/sdm/index.d.ts +0 -88
- package/sdm/index.js +0 -253
- package/sdm/manifest.json +0 -402
- package/stress/docker/Dockerfile +0 -11
- package/stress/docker/docker-compose.yml +0 -51
- package/stress/sds/aggregate.mjs +0 -97
- package/stress/sds/run.mjs +0 -105
- package/stress/sds/write-compose.mjs +0 -96
- package/wasm/flatsql-client.js +0 -280
- package/wasm/flatsql-io.d.ts +0 -97
- package/wasm/flatsql-io.js +0 -625
- package/wasm/flatsql-p4-threads.wasm +0 -0
- package/wasm/flatsql-ps-threads.wasm +0 -0
- package/wasm/flatsql-wasi-noeh.wasm +0 -0
- package/wasm/flatsql-wasi.wasm +0 -0
- package/wasm/flatsql.js +0 -2
- package/wasm/flatsql.worker.js +0 -209
- package/wasm/native/flatsql_wasmedge_runner.cpp +0 -858
- package/wasm/ps-node-fault.d.mts +0 -23
- package/wasm/ps-node-fault.mjs +0 -381
- package/wasm/ps-node-guest.mjs +0 -173
- package/wasm/ps-node-host.d.mts +0 -95
- package/wasm/ps-node-host.mjs +0 -476
- package/wasm/ps-node-imports.mjs +0 -847
- package/wasm/ps.d.ts +0 -21
- package/wasm/ps.js +0 -75
- package/wasm/wasi.d.ts +0 -11
- package/wasm/wasi.js +0 -51
package/wasm/flatsql-io.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types for the FlatSQL host I/O contract (cpp/include/flatsql/flatsql_io.h).
|
|
3
|
-
*
|
|
4
|
-
* These live in the flatsql package on purpose: the seven-call shape is an ABI,
|
|
5
|
-
* and an ABI that each consumer re-declares locally is an ABI that drifts.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export declare const FLATSQL_IO_READ: number;
|
|
9
|
-
export declare const FLATSQL_IO_WRITE: number;
|
|
10
|
-
export declare const FLATSQL_IO_CREATE: number;
|
|
11
|
-
export declare const FLATSQL_IO_EXCL: number;
|
|
12
|
-
export declare const FLATSQL_IO_TRUNC: number;
|
|
13
|
-
export declare const FLATSQL_IO_DELETE_ON_CLOSE: number;
|
|
14
|
-
/** Namespace op: does the path exist? Returns a status, allocates no handle. */
|
|
15
|
-
export declare const FLATSQL_IO_PROBE: number;
|
|
16
|
-
/** Namespace op: remove the path. Returns a status, allocates no handle. */
|
|
17
|
-
export declare const FLATSQL_IO_UNLINK: number;
|
|
18
|
-
|
|
19
|
-
export declare const FLATSQL_IO_ERR_GENERIC: number;
|
|
20
|
-
export declare const FLATSQL_IO_ERR_NOENT: number;
|
|
21
|
-
export declare const FLATSQL_IO_ERR_ACCESS: number;
|
|
22
|
-
export declare const FLATSQL_IO_ERR_IO: number;
|
|
23
|
-
export declare const FLATSQL_IO_ERR_NOSPACE: number;
|
|
24
|
-
export declare const FLATSQL_IO_ERR_BADHANDLE: number;
|
|
25
|
-
|
|
26
|
-
export declare const DEFAULT_CHUNK_BYTES: number;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* A backend answers the seven imports SYNCHRONOUSLY, because a wasm import is
|
|
30
|
-
* synchronous. Offsets and sizes are plain numbers (f64 on the wire — never
|
|
31
|
-
* i64, which emscripten legalizes differently in the two lanes).
|
|
32
|
-
*/
|
|
33
|
-
export interface FlatSqlIoBackend {
|
|
34
|
-
/** Returns a handle, or a negative status. PROBE/UNLINK return a status. */
|
|
35
|
-
open(path: string, flags: number): number;
|
|
36
|
-
/** Bytes read; may be short at EOF. Never moves an implicit cursor. */
|
|
37
|
-
read(handle: number, dst: Uint8Array, offset: number): number;
|
|
38
|
-
/** Bytes written. Writing past EOF extends; the gap reads as zeroes. */
|
|
39
|
-
write(handle: number, src: Uint8Array, offset: number): number;
|
|
40
|
-
truncate(handle: number, size: number): number;
|
|
41
|
-
/**
|
|
42
|
-
* Durability barrier. On a synchronous backend bytes are durable at return;
|
|
43
|
-
* on an async store they become durable when the caller awaits flush().
|
|
44
|
-
*/
|
|
45
|
-
sync(handle: number): number;
|
|
46
|
-
size(handle: number): number;
|
|
47
|
-
close(handle: number): number;
|
|
48
|
-
|
|
49
|
-
/** Pull a file into the synchronous cache BEFORE the engine opens it. */
|
|
50
|
-
hydrate(path: string): Promise<unknown>;
|
|
51
|
-
/** Persist dirty state. No-op on synchronous backends. */
|
|
52
|
-
flush(): Promise<void>;
|
|
53
|
-
/** Remove a file and every key backing it. */
|
|
54
|
-
drop(path: string): Promise<void>;
|
|
55
|
-
|
|
56
|
-
readonly kind?: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface FlatSqlIoChunkOptions {
|
|
60
|
-
/** Page-group size in bytes. */
|
|
61
|
-
chunkBytes?: number;
|
|
62
|
-
/** Key namespace inside the store. */
|
|
63
|
-
prefix?: string;
|
|
64
|
-
/** Paths already known to exist. */
|
|
65
|
-
knownPaths?: string[];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** Flat key -> bytes store: the shape every browser persistence store has. */
|
|
69
|
-
export interface FlatSqlKeyValueStore {
|
|
70
|
-
readBytes(key: string): Promise<Uint8Array | null>;
|
|
71
|
-
writeBytes(key: string, bytes: Uint8Array): Promise<void>;
|
|
72
|
-
deleteKey(key: string): Promise<void>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export declare function createMemoryBackend(
|
|
76
|
-
options?: { chunkBytes?: number },
|
|
77
|
-
): FlatSqlIoBackend;
|
|
78
|
-
|
|
79
|
-
export declare function createNodeFsBackend(
|
|
80
|
-
fs: unknown,
|
|
81
|
-
options?: { root?: string },
|
|
82
|
-
): FlatSqlIoBackend;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Give a flat key -> bytes store real pread/pwrite semantics by addressing
|
|
86
|
-
* fixed-size page groups. A flush costs O(dirty chunks), not O(file).
|
|
87
|
-
*/
|
|
88
|
-
export declare function createChunkedStoreBackend(
|
|
89
|
-
store: FlatSqlKeyValueStore,
|
|
90
|
-
options?: FlatSqlIoChunkOptions,
|
|
91
|
-
): FlatSqlIoBackend & { knownPaths(): string[]; chunkBytes: number };
|
|
92
|
-
|
|
93
|
-
/** Build the `env` import object for a directly-instantiated (WASI) module. */
|
|
94
|
-
export declare function createFlatSqlIoImports(
|
|
95
|
-
backend: FlatSqlIoBackend,
|
|
96
|
-
memoryRef: () => WebAssembly.Memory,
|
|
97
|
-
): Record<string, (...args: number[]) => number>;
|