@visorcraft/mongreldb 0.23.0 → 0.25.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
@@ -118,7 +123,13 @@ export const enum ConditionKind {
118
123
  IsNotNull = 9,
119
124
  FmContainsAll = 10,
120
125
  SparseMatch = 11,
121
- MinHashSimilar = 12
126
+ MinHashSimilar = 12,
127
+ /**
128
+ * Anchored prefix match `LIKE 'prefix%'` on a Bytes column with a bitmap
129
+ * index. Exact (no residual re-check) — the bitmap's distinct keys are
130
+ * enumerated and filtered by prefix. The prefix bytes arrive in `text`.
131
+ */
132
+ BytesPrefix = 13
122
133
  }
123
134
  /**
124
135
  * One predicate over the shared row-id space. Set the fields appropriate to
@@ -264,7 +275,11 @@ export declare class Database {
264
275
  compactTable(name: string): boolean
265
276
  /** Return the path passed to `withPath` / `open`. */
266
277
  directory(): string
267
- /** Run a cross-table SQL query. Returns Arrow IPC bytes. */
278
+ /**
279
+ * Run a cross-table SQL query. Returns Arrow IPC bytes. The session is
280
+ * held for the database's lifetime, so session-scoped objects (views,
281
+ * prepared statements, the result cache) persist across calls.
282
+ */
268
283
  sql(sql: string): Promise<Buffer>
269
284
  /** Flush + release. Optional — the `Database` also drops on GC. */
270
285
  close(): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visorcraft/mongreldb",
3
- "version": "0.23.0",
3
+ "version": "0.25.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",