@shagital/adonisjs-crud-generator
Version:
Adonisjs Admin Panel Generator is a package that helps you quickly scaffold your typical CRUD admin interfaces. It generates the admin panel code based on the existing (migrated) table in the database
30 lines (29 loc) • 860 B
TypeScript
import { BaseCommand } from '@adonisjs/core/build/standalone';
export default class ModelGenerator extends BaseCommand {
/**
* Command name is used to run the command
*/
static commandName: string;
/**
* Command description is displayed in the "help" output
*/
static description: string;
table: string;
connection: string;
static settings: {
/**
* Set the following value to true, if you want to load the application
* before running the command
*/
loadApp: boolean;
/**
* Set the following value to true, if you want this command to keep running until
* you manually decide to exit the process
*/
stayAlive: boolean;
};
run(): Promise<void>;
private isDateTime;
private isDate;
private generateString;
}