diff options
author | Arun Isaac | 2021-12-11 12:59:20 +0530 |
---|---|---|
committer | Arun Isaac | 2021-12-11 14:19:34 +0530 |
commit | bc4b04a3dbaf40a6365a0d7087ef9ca66d6dedb6 (patch) | |
tree | e62d7e12e47b279fc2014136ba2c7e2bd290b58f /guix.scm | |
parent | 1ea4d75e093a43394e32f8662ffc1a42b870b0ea (diff) | |
download | gn-transform-databases-bc4b04a3dbaf40a6365a0d7087ef9ca66d6dedb6.tar.gz |
Visualize schema.
* .dir-locals.el (scheme-mode): Indent set-table-columns correctly.
* dump.scm: Import (srfi srfi-9 gnu).
(%database-name): New variable.
(<table>): New type.
(tables, string-remove-suffix-ci, human-units, graph->dot,
dump-schema): New functions.
Invoke dump-schema.
* guix.scm: Import (gnu packages bioinformatics). Add ccwl, graphviz
and guile-libyaml to the manifest.
Diffstat (limited to 'guix.scm')
-rw-r--r-- | guix.scm | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,8 +4,13 @@ ;; ;; Happy hacking! -(use-modules (gnu packages guile) +(use-modules (gnu packages bioinformatics) + (gnu packages graphviz) + (gnu packages guile) (gnu packages guile-xyz)) (packages->manifest - (list guile-3.0 guile-dbi guile-dbd-mysql)) + (list guile-3.0 guile-dbi guile-dbd-mysql + ;; We abuse (ccwl graphviz) as a library to visualize the database + ;; schema. Hence we need ccwl and guile-libyaml. + ccwl graphviz guile-libyaml)) |