import { Knex } from 'knex'; import { ColumnDefinition, TableDefinition } from './Adapters/AdapterInterface.js'; import { Column, Config } from './Typings.js'; /** * Returns all columns in a given Table using a knex context. * * @export * @param {knex} db The knex config to use. * @param {TableDefinition} table The table to return columns for.. * @param {Config} config The configuration to use. * @returns {Promise} */ export declare function getColumnsForTable(db: Knex, table: TableDefinition, config: Config): Promise; /** * Generates the optionality specification for a given column, given the optionality option. * * @export * @param {ColumnDefinition} column The column to generate optionality for. * @param {TableDefinition} table The table the column is in. * @param {Config} config The configuration object. * @returns {boolean} The optionality of the specified column. */ export declare function getOptionality(column: ColumnDefinition, table: TableDefinition, config: Config): boolean; /** * Generates the full column name comprised of the table, schema and column. * * @export * @param {string} tableName The name of the table that contains the column. * @param {string} schemaName The name of the schema that contains the table. * @param {string} columnName The name of the column. * @returns {string} The full table name. */ export declare function generateFullColumnName(tableName: string, schemaName: string | null, columnName: string): string; /** * Converts a database type to that of a JavaScript type. * * @export * @param {Column} column The column definition to convert. * @param {Table} table The table that the column belongs to. * @param {Config} config The configuration object. * @param dialect The dialect of the database. * @returns {string} */ export declare function convertType(column: ColumnDefinition, table: TableDefinition, config: Config, dialect: string): string; /** * Converts a database type to that of a JavaScript type. * * @export * @param {Column} column The column definition to convert. * @param {Table} table The table that the column belongs to. * @param {Config} config The configuration object. * @param dialect The dialect of the database. * @returns {string} */ export declare function convertStandardType(column: ColumnDefinition, table: TableDefinition, config: Config, dialect: string): string; /** * Converts a numeric enum type to a property type string. * * @export * @param {ColumnDefinition} column The column definition with an enum type. * @param {Config} config The configuration object. * @returns {string} */ export declare function convertNumericEnumType(column: ColumnDefinition, config: Config): string; /** * Converts a string enum type to a property type string. * * @export * @param {ColumnDefinition} column The column definition with the string enums. * @param {Config} config The configuration object. * @returns {string} */ export declare function convertStringEnumType(column: ColumnDefinition): string;