Interface: SchemaExecutor
Defined in: src/batteries/vector/schema.ts:14
The backend side of the schema builder — the adapter operations a VectorSchemaBuilder drains its compiled CollectionSpecs and DDL calls into.
Extended by
Methods
createCollection()
ts
createCollection(spec: CollectionSpec, ifNotExists: boolean): Promise<void>;Defined in: src/batteries/vector/schema.ts:16
Create a collection from spec; ifNotExists suppresses the already-exists error.
Parameters
| Parameter | Type |
|---|---|
spec | CollectionSpec |
ifNotExists | boolean |
Returns
Promise<void>
dropCollection()
ts
dropCollection(collection: string, ifExists: boolean): Promise<void>;Defined in: src/batteries/vector/schema.ts:18
Drop a collection; ifExists suppresses the not-found error.
Parameters
| Parameter | Type |
|---|---|
collection | string |
ifExists | boolean |
Returns
Promise<void>
hasCollection()
ts
hasCollection(collection: string): Promise<boolean>;Defined in: src/batteries/vector/schema.ts:20
Resolve true if the collection exists.
Parameters
| Parameter | Type |
|---|---|
collection | string |
Returns
Promise<boolean>
renameCollection()
ts
renameCollection(from: string, to: string): Promise<void>;Defined in: src/batteries/vector/schema.ts:22
Rename a collection from from to to.
Parameters
| Parameter | Type |
|---|---|
from | string |
to | string |
Returns
Promise<void>