Aliases #3

Merged
jusax23 merged 10 commits from dev into main 2023-02-18 15:47:44 +01:00
Showing only changes of commit b5e68e6640 - Show all commits

View file

@ -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.");
}