- Defaults to
autocommit=False
connection = pymysql.connect(user='user', db='test')
cursor = connection.cursor()
cursor.execute('insert into test (value) values (10)')| #!/usr/bin/env python | |
| #coding: utf-8 | |
| import os | |
| import imp | |
| import time | |
| import signal | |
| import argparse | |
| import commands |
| /* Since script loading is dynamic, we take | |
| a callback function with our loadScript call | |
| that executes once the script is done downloading/parsing | |
| on the page. | |
| */ | |
| var loadScript = function(src, callbackfn) { | |
| var newScript = document.createElement("script"); | |
| newScript.type = "text/javascript"; | |
| newScript.setAttribute("async", "true"); | |
| newScript.setAttribute("src", src); |