aboutsummaryrefslogtreecommitdiff
path: root/dump.scm
diff options
context:
space:
mode:
authorArun Isaac2021-12-14 14:12:16 +0530
committerArun Isaac2021-12-14 14:12:16 +0530
commit2d29efcc454620033315820f9865264c8b028a1b (patch)
treebe69a74273aa5ee5d902e91bdbd8707c8828a375 /dump.scm
parent08021626092d81773507e5fa4738e281ec43379b (diff)
downloadgn-transform-databases-2d29efcc454620033315820f9865264c8b028a1b.tar.gz
Use node ports to indicate foreign key relations precisely.
* dump.scm (table-label): Set port attributes on <td> tag. (tables->graphviz-edges): Specify ports on edges.
Diffstat (limited to 'dump.scm')
-rwxr-xr-xdump.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/dump.scm b/dump.scm
index 62d3a5d..20ec51c 100755
--- a/dump.scm
+++ b/dump.scm
@@ -631,7 +631,8 @@ metric."
(table-name table)
(human-units (table-size table)))))
,@(map (lambda (column)
- `(tr (td (@ ,@(if (member (cons (string->symbol (table-name table))
+ `(tr (td (@ (port ,(column-name column))
+ ,@(if (member (cons (string->symbol (table-name table))
(string->symbol (column-name column)))
%dumped)
'((bgcolor "green"))
@@ -678,7 +679,11 @@ relations in TABLES."
(append-map (lambda (table)
(filter-map (lambda (column)
(and=> (column->foreign-table table column tables)
- (cut cons (table-name table) <>)))
+ (cut cons
+ ((@@ (ccwl graphviz) graph-port)
+ (table-name table)
+ (column-name column))
+ <>)))
(table-columns table)))
tables))