@visorcraft/mongreldb 0.25.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
@@ -496,4 +496,14 @@ export declare class RemoteDatabase {
496
496
  triggers(): string
497
497
  trigger(name: string): string
498
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
499
509
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visorcraft/mongreldb",
3
- "version": "0.25.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",