UNPKG

kysely

Version:
41 lines (40 loc) 1.7 kB
import { ColumnNode } from './column-node.js'; import { ExplainNode } from './explain-node.js'; import { OnConflictNode } from './on-conflict-node.js'; import { OnDuplicateKeyNode } from './on-duplicate-key-node.js'; import { OperationNode } from './operation-node.js'; import { OrActionNode } from './or-action-node.js'; import { OutputNode } from './output-node.js'; import { ReturningNode } from './returning-node.js'; import { TableNode } from './table-node.js'; import { TopNode } from './top-node.js'; import { WithNode } from './with-node.js'; export type InsertQueryNodeProps = Omit<InsertQueryNode, 'kind' | 'into'>; export interface InsertQueryNode extends OperationNode { readonly kind: 'InsertQueryNode'; readonly into?: TableNode; readonly columns?: ReadonlyArray<ColumnNode>; readonly values?: OperationNode; readonly returning?: ReturningNode; readonly onConflict?: OnConflictNode; readonly onDuplicateKey?: OnDuplicateKeyNode; readonly with?: WithNode; /** @deprecated use {@link orAction} instead. */ readonly ignore?: boolean; readonly orAction?: OrActionNode; readonly replace?: boolean; readonly explain?: ExplainNode; readonly defaultValues?: boolean; readonly endModifiers?: ReadonlyArray<OperationNode>; readonly top?: TopNode; readonly output?: OutputNode; } /** * @internal */ export declare const InsertQueryNode: Readonly<{ is(node: OperationNode): node is InsertQueryNode; create(into: TableNode, withNode?: WithNode, replace?: boolean): InsertQueryNode; createWithoutInto(): InsertQueryNode; cloneWith(insertQuery: InsertQueryNode, props: InsertQueryNodeProps): InsertQueryNode; }>;