gen-jhipster
Version:
VHipster - Spring Boot + Angular/React/Vue in one handy generator
21 lines (20 loc) • 997 B
TypeScript
import type { Application as LiquibaseApplication, Entity as LiquibaseEntity, Relationship as LiquibaseRelationship } from '../types.ts';
/**
* Whether the two relationships are absolutely equal
* @param relationshipA
* @param relationshipB
* @returns
*/
export declare function relationshipEquals(relationshipA: LiquibaseRelationship, relationshipB: LiquibaseRelationship): boolean;
/**
* Whether the two relationships are equal, except for the foreign key on handlers, indicating that foreign key recreation is sufficient
* @param relationshipA
* @param relationshipB
* @returns
*/
export declare function relationshipNeedsForeignKeyRecreationOnly(relationshipA: LiquibaseRelationship, relationshipB: LiquibaseRelationship): boolean;
export declare function prepareRelationshipForLiquibase({ application, entity, relationship, }: {
application: LiquibaseApplication<LiquibaseEntity>;
entity: LiquibaseEntity;
relationship: LiquibaseRelationship;
}): LiquibaseRelationship;