import { AbstractClient } from "https://dotland.deno.dev/x/nessie@2.0.8/mod.ts";
The abstract client which handles most of the logic related to database communication.
Constructors
new
AbstractClient(options: AbstractClientOptions<Client>)Properties
client: Client
Methods
private
_migrationHandler(file: FileEntryT,
queryHandler: QueryHandler,
isDown?,
Handles migration files.
private
_sliceMigrationFiles(queryResult: string | undefined): voidFilters and sort files in ascending order.
protected
_migrate(amount: AmountMigrateT,
latestMigration: string | undefined,
queryHandler: QueryHandler,
Runs the up
method on all available migrations after filtering and sorting.
protected
_parseAmount(amount: AmountRollbackT,
maxAmount?,
isMigration?,
_rollback()
amount: AmountRollbackT,
allMigrations: string[] | undefined,
queryHandler: QueryHandler,
Runs the down
method on defined number of migrations after retrieving them from the DB.