UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.

30 lines (29 loc) 751 B
import * as yargs from "yargs"; /** * Creates a new migration file. */ export declare class MigrationCreateCommand implements yargs.CommandModule { command: string; describe: string; aliases: string; builder(args: yargs.Argv): yargs.Argv<{ c: string; } & { n: unknown; } & { d: unknown; } & { f: string; } & { o: boolean; }>; handler(args: yargs.Arguments): Promise<void>; /** * Gets contents of the migration file. */ protected static getTemplate(name: string, timestamp: number): string; /** * Gets contents of the migration file in Javascript. */ protected static getJavascriptTemplate(name: string, timestamp: number): string; }