aboutsummaryrefslogtreecommitdiff
path: root/app/test.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-07-03 17:09:05 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-07-03 17:09:05 +0530
commit5721a75ed46438cf390559d76a12358cd7770edf (patch)
tree84155d85ed82cd9ce3e8ad651079d0f17e56e743 /app/test.py
parentbe04a44bef7f7d7c12eec45c45084d15a789b2bf (diff)
connected database; backend complete
Diffstat (limited to 'app/test.py')
-rw-r--r--app/test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/test.py b/app/test.py
new file mode 100644
index 0000000..dddc9e7
--- /dev/null
+++ b/app/test.py
@@ -0,0 +1,5 @@
+import mysql.connector as con
+mycon = con.connect(host="sql12.freesqldatabase.com",user="sql12352288",password="7X35JENbK3",port=3306,database="sql12352288")
+mycursor = mycon.cursor()
+mycursor.execute("SELECT COUNT(*) FROM curie")
+id = mycursor.fetchall()[0][0] \ No newline at end of file