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