UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

29 lines (28 loc) 761 B
import yargs from "yargs"; /** * Creates a new migration file. */ export declare class MigrationCreateCommand implements yargs.CommandModule { command: string; describe: string; builder(args: yargs.Argv): yargs.Argv<{ path: string; } & { o: boolean; } & { esm: boolean; } & { t: number | boolean; }>; handler(args: yargs.Arguments<any & { path: string; }>): 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, esm: boolean): string; }