UNPKG

@athenna/database

Version:

The Athenna database handler for SQL/NoSQL.

25 lines (24 loc) 627 B
/** * @athenna/database * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import type { DatabaseImpl } from '#src/database/DatabaseImpl'; export declare abstract class BaseMigration { /** * Define the database connection that the * migration will use. */ static connection(): string; /** * Run the migrations. */ abstract up(db: DatabaseImpl): Promise<void>; /** * Reverse the migrations. */ abstract down(db: DatabaseImpl): Promise<void>; }