diff options
author | Arun Isaac | 2021-12-14 14:12:16 +0530 |
---|---|---|
committer | Arun Isaac | 2021-12-14 14:12:16 +0530 |
commit | 2d29efcc454620033315820f9865264c8b028a1b (patch) | |
tree | be69a74273aa5ee5d902e91bdbd8707c8828a375 /dump.scm | |
parent | 08021626092d81773507e5fa4738e281ec43379b (diff) | |
download | gn-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-x | dump.scm | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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)) |