typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
27 lines (26 loc) • 715 B
TypeScript
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;
} & {
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): string;
}