kysely
Version:
Type safe SQL query builder
25 lines (24 loc) • 1.03 kB
TypeScript
import { CreateSchemaNode } from '../operation-node/create-schema-node.js';
import { OperationNodeSource } from '../operation-node/operation-node-source.js';
import { CompiledQuery } from '../query-compiler/compiled-query.js';
import { Compilable } from '../util/compilable.js';
import { QueryExecutor } from '../query-executor/query-executor.js';
import { QueryId } from '../util/query-id.js';
export declare class CreateSchemaBuilder implements OperationNodeSource, Compilable {
#private;
constructor(props: CreateSchemaBuilderProps);
ifNotExists(): CreateSchemaBuilder;
/**
* Simply calls the provided function passing `this` as the only argument. `$call` returns
* what the provided function returns.
*/
$call<T>(func: (qb: this) => T): T;
toOperationNode(): CreateSchemaNode;
compile(): CompiledQuery;
execute(): Promise<void>;
}
export interface CreateSchemaBuilderProps {
readonly queryId: QueryId;
readonly executor: QueryExecutor;
readonly node: CreateSchemaNode;
}