Files
evento/node_modules/kysely/dist/cjs/schema/drop-view-builder.d.ts
2026-03-18 14:55:56 -03:00

27 lines
1.1 KiB
TypeScript

import type { OperationNodeSource } from '../operation-node/operation-node-source.js';
import type { CompiledQuery } from '../query-compiler/compiled-query.js';
import type { Compilable } from '../util/compilable.js';
import type { QueryExecutor } from '../query-executor/query-executor.js';
import type { QueryId } from '../util/query-id.js';
import { DropViewNode } from '../operation-node/drop-view-node.js';
export declare class DropViewBuilder implements OperationNodeSource, Compilable {
#private;
constructor(props: DropViewBuilderProps);
materialized(): DropViewBuilder;
ifExists(): DropViewBuilder;
cascade(): DropViewBuilder;
/**
* 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(): DropViewNode;
compile(): CompiledQuery;
execute(): Promise<void>;
}
export interface DropViewBuilderProps {
readonly queryId: QueryId;
readonly executor: QueryExecutor;
readonly node: DropViewNode;
}