aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/utilities.py
diff options
context:
space:
mode:
authorLei Yan2014-02-03 12:48:37 -0600
committerLei Yan2014-02-03 12:48:37 -0600
commit818797d2fd7e425da47cf12ddab6001e3234c2e5 (patch)
tree0e62f3f1cacbafa6a75528d2a39eb6acd46b0b2e /wqflask/maintenance/dataset/utilities.py
parentb462fae9df948dbf35232a764d61fbf10c930e82 (diff)
downloadgenenetwork2-818797d2fd7e425da47cf12ddab6001e3234c2e5.tar.gz
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset/utilities.py')
-rw-r--r--wqflask/maintenance/dataset/utilities.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/wqflask/maintenance/dataset/utilities.py b/wqflask/maintenance/dataset/utilities.py
new file mode 100644
index 00000000..453ee707
--- /dev/null
+++ b/wqflask/maintenance/dataset/utilities.py
@@ -0,0 +1,10 @@
+import MySQLdb
+
+def get_cursor():
+ host = 'localhost'
+ user = 'webqtl'
+ passwd = 'webqtl'
+ db = 'db_webqtl'
+ con = MySQLdb.Connect(db=db, host=host, user=user, passwd=passwd)
+ cursor = con.cursor()
+ return cursor \ No newline at end of file