node-pg-migrate-custom
Version:
Postgresql database migration management tool for node.js
17 lines (16 loc) • 1.29 kB
TypeScript
import { ColumnDefinitions, ColumnDefinition } from './operations/tablesTypes';
import { Name, Type, Value } from './operations/generalTypes';
import { MigrationOptions, Literal, RunnerOption } from './types';
import { FunctionParam, FunctionParamType } from './operations/functionsTypes';
export declare const createSchemalize: (shouldDecamelize: boolean, shouldQuote: boolean) => (v: Name) => string;
export declare const createTransformer: (literal: Literal) => (s: string, d?: {
[key: string]: Name;
} | undefined) => string;
export declare const escapeValue: (val: Value) => string | number;
export declare const getSchemas: (schema?: string | string[] | undefined) => string[];
export declare const getMigrationTableSchema: (options: RunnerOption) => string;
export declare const applyTypeAdapters: (type: string) => string;
export declare const applyType: (type: Type, extendingTypeShorthands?: ColumnDefinitions) => ColumnDefinition & FunctionParamType;
export declare const formatParams: (params: FunctionParam[] | undefined, mOptions: MigrationOptions) => string;
export declare const makeComment: (object: string, name: string, text?: string | null | undefined) => string;
export declare const formatLines: (lines: string[], replace?: string, separator?: string) => string;