aboutsummaryrefslogtreecommitdiff
path: root/scripts/precompute/precompute-hits.scm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/precompute/precompute-hits.scm')
-rwxr-xr-xscripts/precompute/precompute-hits.scm20
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)
+)