mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-16 07:36:50 +00:00
feat(python): support exist_ok for materialized views (#4991)
This commit is contained in:
@@ -27,6 +27,16 @@ CREATE MATERIALIZED VIEW <name> AS SELECT ...
|
||||
```
|
||||
</CodeGroup>
|
||||
|
||||
{/* Draft for the materialized-view exist_ok release.
|
||||
|
||||
`IF NOT EXISTS` preserves an existing materialized view's definition, data and
|
||||
refresh settings without refreshing it. The Python equivalent is
|
||||
`db.create_materialized_view("saved", "source", exist_ok=True)`. A skipped
|
||||
asynchronous creation returns a completed job without submitting a refresh job.
|
||||
Existing names are errors by default.
|
||||
|
||||
*/}
|
||||
|
||||
Once created, a materialized view can be queried like a table. Use the
|
||||
statements below to list, refresh and drop it. For SDK methods, see
|
||||
[Materialized views](/management/materialized-view#create).
|
||||
|
||||
Reference in New Issue
Block a user