From 12e43794a12a94e45c25cadf5d167697c16c4f5f Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 14 Nov 2023 17:53:05 +0100 Subject: Started on precompute script --- scripts/precompute/precompute-hits.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/precompute/precompute-hits.scm (limited to 'scripts/precompute/precompute-hits.scm') 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) +) -- cgit v1.2.3