UNPKG

@osdiab/node-pg-migrate

Version:

Postgresql database migration management tool for node.js

30 lines (29 loc) 761 B
import PgLiteral from './PgLiteral'; export type LiteralUnion<T extends string> = T | (string & { zz_IGNORE_ME?: never; }); export type PublicPart<T> = { [K in keyof T]: T[K]; }; export type Nullable<T> = { [P in keyof T]: T[P] | null; }; export type PgLiteralValue = PublicPart<PgLiteral>; export type Value = null | boolean | string | number | PgLiteral | PgLiteralValue | Value[]; export type Type = string | { type: string; }; export type Name = string | { schema?: string; name: string; }; export interface IfNotExistsOption { ifNotExists?: boolean; } export interface IfExistsOption { ifExists?: boolean; } export interface CascadeOption { cascade?: boolean; } export type DropOptions = IfExistsOption & CascadeOption;