Skip to content
1 min read · 183 words

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 ​

ParameterType
specCollectionSpec
ifNotExistsboolean

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 ​

ParameterType
collectionstring
ifExistsboolean

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 ​

ParameterType
collectionstring

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 ​

ParameterType
fromstring
tostring

Returns ​

Promise<void>