supa-seed
Version:
A constraint-aware, framework-agnostic database seeding framework with deep PostgreSQL business logic discovery and MakerKit integration support
33 lines • 1.06 kB
TypeScript
/**
* Constraint Handlers System
* Implements handlers for different types of PostgreSQL constraints
*/
import { ConstraintHandler, ConstraintHandlingResult, ConstraintType } from './constraint-types';
export declare class ConstraintHandlers {
private static handlers;
/**
* Initialize default constraint handlers
*/
static initializeDefaultHandlers(): void;
/**
* Register a custom constraint handler
*/
static registerHandler(handler: ConstraintHandler): void;
/**
* Get handler for a specific constraint
*/
static getHandler(constraint: any, constraintType: ConstraintType): ConstraintHandler | null;
/**
* Handle constraint for given data
*/
static handleConstraint(constraint: any, constraintType: ConstraintType, data: any): ConstraintHandlingResult;
/**
* Get all registered handlers
*/
static getAllHandlers(): ConstraintHandler[];
/**
* Clear all handlers
*/
static clearHandlers(): void;
}
//# sourceMappingURL=constraint-handlers.d.ts.map