@adonisjs/lucid
Version:
SQL ORM built on top of Active Record pattern
17 lines (16 loc) • 447 B
TypeScript
import { FileNode, QueryClientContract } from './database.js';
/**
* Shape of file node returned by the run method
*/
export type SeederFileNode = {
status: 'pending' | 'completed' | 'failed' | 'ignored';
error?: any;
file: FileNode<unknown>;
};
export type SeederConstructorContract = {
environment: string[];
new (client: QueryClientContract): {
client: QueryClientContract;
run(): Promise<void>;
};
};