mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 03:45:59 +00:00
better paint perspective
This commit is contained in:
@@ -154,3 +154,13 @@ export interface MultipleDatabaseInfo {
|
||||
[database: string]: DatabaseInfo;
|
||||
};
|
||||
}
|
||||
|
||||
export function switchPerspectiveReferenceDirection(ref: PerspectiveReferenceConfig): PerspectiveReferenceConfig {
|
||||
return {
|
||||
designerId: ref.designerId,
|
||||
sourceId: ref.targetId,
|
||||
targetId: ref.sourceId,
|
||||
isAutoGenerated: ref.isAutoGenerated,
|
||||
columns: ref.columns.map(x => ({ source: x.target, target: x.source })),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user