quiverdb 0.13.3 → 0.13.4
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 +6 -3
- package/libs/linux-aarch64/libquiver.so +0 -0
- package/libs/linux-aarch64/libquiver.so.0 +0 -0
- package/libs/linux-aarch64/libquiver_c.so +0 -0
- package/libs/linux-x86_64/libquiver.so +0 -0
- package/libs/linux-x86_64/libquiver.so.0 +0 -0
- package/libs/linux-x86_64/libquiver_c.so +0 -0
- package/libs/macos-aarch64/libquiver.0.dylib +0 -0
- package/libs/macos-aarch64/libquiver_c.dylib +0 -0
- package/libs/windows-x86_64/libquiver.dll +0 -0
- package/libs/windows-x86_64/libquiver_c.dll +0 -0
- package/package.json +1 -1
- package/src/database.ts +0 -1
- package/src/introspection.ts +0 -10
- package/src/loader.ts +0 -1
- package/src/sandbox-api.ts +8 -5
package/README.md
CHANGED
|
@@ -185,9 +185,12 @@ as an exact INTEGER, a `boolean` as the INTEGER 1 or 0).
|
|
|
185
185
|
|
|
186
186
|
### Introspection
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
- `
|
|
188
|
+
The describe methods give agents the schema, attribute meanings and data coverage as text reports.
|
|
189
|
+
|
|
190
|
+
- `describe()` -- Database/version header followed by complete reports for every collection
|
|
191
|
+
- `describeCollection(collection)` -- One collection's structure, UI metadata (including tooltips),
|
|
192
|
+
scalar null/value statistics and group coverage, returned as a string. Enum meanings appear
|
|
193
|
+
once in `enum {...}`; value histograms contain numeric codes and counts.
|
|
191
194
|
- `isHealthy()` -- Check database health
|
|
192
195
|
- `path()` -- Get database file path
|
|
193
196
|
- `currentVersion()` -- Get current schema version
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/src/database.ts
CHANGED
|
@@ -302,7 +302,6 @@ export class Database {
|
|
|
302
302
|
declare path: () => string;
|
|
303
303
|
declare describe: () => string;
|
|
304
304
|
declare describeCollection: (collection: string) => string;
|
|
305
|
-
declare summarizeCollection: (collection: string) => string;
|
|
306
305
|
|
|
307
306
|
// --- Composite helpers (implemented in composites.ts) ---
|
|
308
307
|
declare readScalarsById: (
|
package/src/introspection.ts
CHANGED
|
@@ -42,13 +42,3 @@ Database.prototype.describeCollection = function (this: Database, collection: st
|
|
|
42
42
|
lib.quiver_database_free_string(readPtrOut(out));
|
|
43
43
|
return result;
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
Database.prototype.summarizeCollection = function (this: Database, collection: string): string {
|
|
47
|
-
const lib = getSymbols();
|
|
48
|
-
const collBuf = toCString(collection);
|
|
49
|
-
const out = allocPtrOut();
|
|
50
|
-
check(lib.quiver_database_summarize_collection(this._handle, collBuf.buf, out.buf));
|
|
51
|
-
const result = decodeStringFromBuf(out);
|
|
52
|
-
lib.quiver_database_free_string(readPtrOut(out));
|
|
53
|
-
return result;
|
|
54
|
-
};
|
package/src/loader.ts
CHANGED
|
@@ -128,7 +128,6 @@ const metadataSymbols = {
|
|
|
128
128
|
|
|
129
129
|
const describeSymbols = {
|
|
130
130
|
quiver_database_describe_collection: { args: [P, BUF, P], returns: I32 },
|
|
131
|
-
quiver_database_summarize_collection: { args: [P, BUF, P], returns: I32 },
|
|
132
131
|
} as const;
|
|
133
132
|
|
|
134
133
|
const timeSeriesSymbols = {
|
package/src/sandbox-api.ts
CHANGED
|
@@ -181,14 +181,17 @@ db:is_healthy() -- boolean
|
|
|
181
181
|
db:current_version() -- integer (current migration version)
|
|
182
182
|
db:path() -- string (database file path)
|
|
183
183
|
db:number_of_elements(collection) -- integer: how many elements the collection holds right now
|
|
184
|
-
db:describe() -- string:
|
|
185
|
-
db:describe_collection(collection) -- string:
|
|
186
|
-
|
|
187
|
-
-- integer value distributions, per-group sizes
|
|
184
|
+
db:describe() -- string: database/version header + complete reports for every collection
|
|
185
|
+
db:describe_collection(collection) -- string: structure, UI metadata (including tooltips), scalar
|
|
186
|
+
-- null/non-null counts, integer distributions, group coverage
|
|
188
187
|
db:validate_migrations(path) -- validate a migrations dir (up then down) in-memory; no return
|
|
189
188
|
\`\`\`
|
|
190
189
|
|
|
191
|
-
|
|
190
|
+
The \`describe*\` methods give agents the schema, attribute meanings and data coverage as text reports.
|
|
191
|
+
Both **return** a string. Declarations and statistics share each line, with UI clauses between them.
|
|
192
|
+
Enum meanings appear once in \`enum {...}\`;
|
|
193
|
+
value histograms contain numeric codes and counts, only for non-primary-key INTEGER scalars with
|
|
194
|
+
at most 64 distinct integer values. \`db:describe()\` queries statistics for every collection.
|
|
192
195
|
|
|
193
196
|
\`db:validate_migrations(path)\` applies every \`up.sql\` in version order, then every \`down.sql\` in
|
|
194
197
|
reverse, against a throwaway in-memory database — nothing in \`db\` itself is touched. The round trip
|