import BaseTable from "../base-table.js"; import Column from "./column.js"; import ColumnsIndex from "./columns-index.js"; import ForeignKey from "./foreign-key.js"; export type MssqlGroupedIndexDataType = { /** * - Ordered index column names. */ columnNames: string[]; /** * - Index name. */ index_name: string; /** * - Whether the index is primary. */ is_primary_key: boolean; /** * - Whether the index is unique. */ is_unique: boolean; /** * - Table name. */ table_name: string; }; /** * MssqlGroupedIndexDataType type. * @typedef {object} MssqlGroupedIndexDataType * @property {string[]} columnNames - Ordered index column names. * @property {string} index_name - Index name. * @property {boolean} is_primary_key - Whether the index is primary. * @property {boolean} is_unique - Whether the index is unique. * @property {string} table_name - Table name. */ /** * Groups ordered SQL Server index rows into one metadata value per index. * @param {import("../index-metadata.js").IndexMetadataType[]} indexRows - Ordered index metadata rows. * @returns {MssqlGroupedIndexDataType[]} - Grouped index metadata. */ export declare function groupMssqlIndexRows(indexRows: import("../index-metadata.js").IndexMetadataType[]): MssqlGroupedIndexDataType[]; export default class VelociousDatabaseDriversMssqlTable extends BaseTable { data: Record; driver: import("../base.js").default; /** * Runs constructor. * @param {import("../base.js").default} driver - Database driver instance. * @param {Record} data - Data payload. */ constructor(driver: import("../base.js").default, data: Record); getColumns(): Promise; getForeignKeys(): Promise; getIndexes(): Promise; /** * Runs get name. * @returns {string} - The table name. */ getName(): string; /** * Runs truncate. * @param {{cascade: boolean}} [args] - Truncate options. * @returns {Promise>>>} - Resolves with the truncate. */ truncate(args?: { cascade: boolean; }): Promise>>>; } //# sourceMappingURL=table.d.ts.map