@adonisjs/lucid
Version:
SQL ORM built on top of Active Record pattern
47 lines (46 loc) • 1.24 kB
TypeScript
import { BaseCommand } from '@adonisjs/core/ace';
import { type CommandOptions } from '@adonisjs/core/types/ace';
export default class SchemaGenerate extends BaseCommand {
static commandName: string;
static description: string;
static options: CommandOptions;
private generator;
/**
* Choose a custom pre-defined connection. Otherwise, we use the
* default connection
*/
connection: string;
/**
* Display result in one compact single-line output
*/
compactOutput: boolean;
/**
* Not a valid connection
*/
private printNotAValidConnection;
/**
* Returns beautified log message string
*/
protected printLogMessage(message: string): void;
/**
* Run as a subcommand. Never close database connection or exit
* process here
*/
private runAsSubCommand;
/**
* Branching out, so that if required we can implement
* "runAsMain" separately from "runAsSubCommand".
*
* For now, they both are the same
*/
private runAsMain;
/**
* Handle command
*/
run(): Promise<void>;
/**
* Lifecycle method invoked by ace after the "run"
* method.
*/
completed(): Promise<void>;
}