diff options
author | Pjotr Prins | 2023-11-14 17:53:05 +0100 |
---|---|---|
committer | Pjotr Prins | 2023-11-14 17:53:05 +0100 |
commit | 12e43794a12a94e45c25cadf5d167697c16c4f5f (patch) | |
tree | f761dab8235a7cff9a98f4d865316e14ac46cc13 /scripts/precompute/precompute-hits.scm | |
parent | 0e29ab17e14d1d58905ae708ac48acb0e47cbd86 (diff) | |
download | gn-guile-12e43794a12a94e45c25cadf5d167697c16c4f5f.tar.gz |
Started on precompute script
Diffstat (limited to 'scripts/precompute/precompute-hits.scm')
-rwxr-xr-x | scripts/precompute/precompute-hits.scm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/precompute/precompute-hits.scm b/scripts/precompute/precompute-hits.scm new file mode 100755 index 0000000..7986f6a --- /dev/null +++ b/scripts/precompute/precompute-hits.scm @@ -0,0 +1,20 @@ +#! Run from base dir with + +. .guix-shell -- guile -L . -s ./scripts/precompute/precompute-hits.scm + +!# + +(use-modules (dbi dbi) + (gn db mysql) + ) + +;; potentially you want to test connection with mysql client: +;; +;; mysql -uwebqtlout -pwebqtlout -A -h 127.0.0.1 -P 3306 +;; +(define db_webqtl (dbi-open "mysql" "webqtlout:webqtlout:db_webqtl:tcp:127.0.0.1:3306")) +(dbi-query db_webqtl "SELECT * FROM ProbeSetXRef LIMIT 3") +(display (dbi-get_status db_webqtl)) +(let [(row (dbi-get_row db_webqtl))] + (display row) +) |