Files
lancedb/docs/src/js/interfaces/MaterializedViewDefinition.md
T
Wyatt Alt 68749ecfa3 feat(nodejs): materialized view bindings (#3935)
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.


<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
2026-08-21 23:48:43 -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.