supa-seed
Version:
A constraint-aware, framework-agnostic database seeding framework with deep PostgreSQL business logic discovery and MakerKit integration support
20 lines • 807 B
TypeScript
import { SeedModule } from '../../../core/types/types';
export declare abstract class BaseSeeder extends SeedModule {
/**
* Check if a table exists in the database
*/
protected tableExists(tableName: string): Promise<boolean>;
/**
* Check if a field exists in a table
*/
protected fieldExists(tableName: string, fieldName: string): Promise<boolean>;
/**
* Run a seeding operation with graceful error handling
*/
protected seedWithFallback<T>(operation: () => Promise<T>, tableName: string, skipMessage?: string): Promise<T | null>;
/**
* Get field name with fallbacks
*/
protected getFieldWithFallback(fieldMapping: Record<string, string>, primaryField: string, fallbacks: string[]): string;
}
//# sourceMappingURL=base-seeder.d.ts.map