- 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 numpy as np | |
| from astropy.io import fits | |
| from astropy.stats import sigma_clip | |
| import matplotlib.pyplot as plt | |
| # Nicer plotting if possible, requires matplotlib>=1.5.0 | |
| try: |
| d51beb968548b560c10c |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import pytest | |
| import sqlalchemy as sa | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy.orm import sessionmaker | |
| # In `db.py` or something | |
| Base = declarative_base() |