import type * as mariadb from 'mariadb'; import type { ForeignKey, Schema, Table } from '../../schema.js'; import { StatementKind } from '../kind.js'; /** * @see https://mariadb.com/kb/en/information-schema-referential_constraints-table/ */ export type ForeignKeyInformation = { CONSTRAINT_SCHEMA: string; CONSTRAINT_NAME: string; TABLE_NAME: string; UNIQUE_CONSTRAINT_SCHEMA: string; REFERENCED_TABLE_NAME: string; UNIQUE_CONSTRAINT_NAME: string; UPDATE_RULE: 'CASCADE' | 'SET NULL' | 'SET DEFAULT' | 'RESTRICT' | 'NO ACTION'; DELETE_RULE: 'CASCADE' | 'SET NULL' | 'SET DEFAULT' | 'RESTRICT' | 'NO ACTION'; }; export type GetForeignKeyInformationStatementOptions = { table?: Table; foreignKey?: ForeignKey; }; /** * @see https://mariadb.com/kb/en/information-schema-referential_constraints-table/ */ export declare class GetForeignKeyInformationStatement implements mariadb.QueryOptions { readonly schema: Schema; readonly kind = StatementKind.ADMINISTRATIVE; readonly sql: string; constructor(schema: Schema, options?: GetForeignKeyInformationStatementOptions); } //# sourceMappingURL=get-foreign-key-information.d.ts.map