import { State } from "https://deno.land/x/nessie@2.0.10/cli/state.ts";
The main state for the application.
Contains the client, and handles the communication to the database.
Constructors
new
State(options: StateOptions)Properties
client: NessieConfig["client"]
logger: LoggerFn
Methods
private
_fileExistsPrompt(file: string): Promise<boolean>private
_folderPrompt(folders: string[])makeMigration(migrationName?)
Makes the migration
makeSeed(seedName?)
Makes the seed
Static Methods
private
_parseMigrationAndSeedFiles()Parses and sets the migrationFiles and seedFiles
private
_parseMigrationAndSeedFolders(options: NessieConfig)Parses and sets the migrationFolders and seedFolders
init(options: AllCommandOptions)
Initializes the state with a client