Skip to content

Instantly share code, notes, and snippets.

View funilrys's full-sized avatar
🐱
Hi, you are awesome!

Nissar Chababy funilrys

🐱
Hi, you are awesome!
View GitHub Profile
@funilrys
funilrys / python_pymysql_notes.md
Created May 30, 2019 11:33 — forked from simonrw/python_pymysql_notes.md
Notes about pymysql connections

Database transactions

pymysql

  • Defaults to autocommit=False
connection = pymysql.connect(user='user', db='test')
cursor = connection.cursor()
cursor.execute('insert into test (value) values (10)')