diff --git a/src/dbStructure.ts b/src/dbStructure.ts index 1ca68d8..26de25e 100644 --- a/src/dbStructure.ts +++ b/src/dbStructure.ts @@ -102,7 +102,6 @@ export class joinCross implements Joins{ export interface Constraint { name: string; - serialize(handler: Handler): QueryBuilder; uses(attr: Attribute): boolean; check(table: Table): boolean | string; } @@ -120,9 +119,6 @@ export class checkConstraint implements Constraint { uses(attr: Attribute): boolean { throw new Error("Method not implemented."); } - serialize(handler: Handler): QueryBuilder { - throw new Error("Method not implemented."); - } } export class uniqueConstraint implements Constraint { @@ -142,10 +138,6 @@ export class uniqueConstraint implements Constraint { uses(attr: Attribute): boolean { return this.attrs.includes(attr); } - serialize(handler: Handler): QueryBuilder { - throw new Error("Method not implemented."); - } - } export class foreignConstraint implements Constraint { @@ -161,9 +153,6 @@ export class foreignConstraint implements Constraint { this.onUpdate = onUpdate; this.onDelete = onDelete; } - serialize(handler: Handler): QueryBuilder { - throw new Error("Method not implemented."); - } uses(attr: Attribute): boolean { throw new Error("Method not implemented."); }