Files
lancedb/docs/src/js/interfaces/MaterializedViewDefinition.md
T
Wyatt Alt 32bdfaa526 feat(nodejs): materialized view bindings
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.
2026-08-19 16:34:30 -07:00

761 B

@lancedb/lancedbDocs


@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.