mirror of
https://github.com/lancedb/lancedb.git
synced 2026-08-20 21:18:30 +00:00
32bdfaa526
Exposes materialized views to TypeScript: createMaterializedView,
openMaterializedView and listMaterializedViews on Connection, and a
MaterializedView handle carrying the parsed definition and
refresh({full, sourceVersion}), which returns the typed refresh result.
select accepts column names, [alias, expression] pairs, or a record of the
same; the definition reads back off the stored schema, so a reopened handle
needs no side channel. Remote connections surface the core's not-supported
error up front.
The napi crate needed the same recursion-limit raise as the core crate: the
refresh future's type graph overflows the default trait-recursion depth.
761 B
761 B
@lancedb/lancedb • Docs
@lancedb/lancedb / MaterializedViewDefinition
Interface: MaterializedViewDefinition
The query that defines a materialized view.
Properties
filter?
optional filter: string;
SQL predicate selecting the source rows the view holds.
inputs
inputs: string[];
Source columns the projections and filter read.
limit?
optional limit: number;
Cap on the number of rows the view holds.
projections
projections: [string, string][];
[output column, SQL expression] pairs, in view schema order.
sourceTable
sourceTable: string;
Name of the source table, in the same database as the view.