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 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
- - `describe()` -- Whole-database text report (returns a string)
189
- - `describeCollection(collection)` -- One collection's structure (returns a string)
190
- - `summarizeCollection(collection)` -- Per-attribute null/value summary (returns a string)
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quiverdb",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
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: (
@@ -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 = {
@@ -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: whole-DB text report (returns it, does NOT print)
185
- db:describe_collection(collection) -- string: one collection's structure (text report)
186
- db:summarize_collection(collection)-- string: per-scalar null/non-null counts, low-cardinality
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
- All three \`describe*\`/\`summarize*\` methods **return** a string — \`print()\` it to see it.
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