typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
56 lines (55 loc) • 1.75 kB
TypeScript
/**
* Generates a new project with TypeORM.
*/
export declare class InitCommand {
command: string;
describe: string;
builder(yargs: any): any;
handler(argv: any): Promise<void>;
/**
* Gets contents of the ormconfig file.
*/
protected static getOrmConfigTemplate(database: string): string;
/**
* Gets contents of the ormconfig file.
*/
protected static getTsConfigTemplate(): string;
/**
* Gets contents of the .gitignore file.
*/
protected static getGitIgnoreFile(): string;
/**
* Gets contents of the user entity.
*/
protected static getUserEntityTemplate(database: string): string;
/**
* Gets contents of the route file (used when express is enabled).
*/
protected static getRoutesTemplate(): string;
/**
* Gets contents of the user controller file (used when express is enabled).
*/
protected static getControllerTemplate(): string;
/**
* Gets contents of the main (index) application file.
*/
protected static getAppIndexTemplate(express: boolean): string;
/**
* Gets contents of the new package.json file.
*/
protected static getPackageJsonTemplate(projectName?: string): string;
/**
* Gets contents of the new docker-compose.yml file.
*/
protected static getDockerComposeTemplate(database: string): string;
/**
* Gets contents of the new readme.md file.
*/
protected static getReadmeTemplate(options: {
docker: boolean;
}): string;
/**
* Appends to a given package.json template everything needed.
*/
protected static appendPackageJson(packageJsonContents: string, database: string, express: boolean): string;
}