@visorcraft/mongreldb 0.24.0 → 0.26.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.
Binary file
package/native.d.ts CHANGED
@@ -17,7 +17,12 @@ export const enum IndexKindSpec {
17
17
  FmIndex = 1,
18
18
  Ann = 2,
19
19
  Sparse = 3,
20
- MinHash = 4
20
+ MinHash = 4,
21
+ /**
22
+ * Learned zonemap (PGM) for ordered range predicates. Engine SQL aliases:
23
+ * `brin`, `learned_range`, `range`.
24
+ */
25
+ LearnedRange = 5
21
26
  }
22
27
  export interface ColumnSpec {
23
28
  id: number
@@ -491,4 +496,14 @@ export declare class RemoteDatabase {
491
496
  triggers(): string
492
497
  trigger(name: string): string
493
498
  callProcedure(name: string, opts?: ProcedureCallOptions | undefined | null): string
499
+ /**
500
+ * Compact every table on the daemon (POST /compact). Returns
501
+ * `{ compacted, skipped }`.
502
+ */
503
+ compact(): CompactStats
504
+ /**
505
+ * Compact a single table on the daemon (POST /tables/{name}/compact).
506
+ * Returns `true` if compacted, `false` if skipped (fewer than 2 runs).
507
+ */
508
+ compactTable(name: string): boolean
494
509
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visorcraft/mongreldb",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "description": "High-performance Node.js bindings for MongrelDB with native in-process storage, sub-ms writes, and hybrid indexing.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",