1#!/usr/bin/env python3
2
3"""Database access functions.
4
5Usage:
6
7from chart.db.connection import db_connect
8
9db_conn = db_connect('EVENTS')
10db_conn.execute('SELECT ...').fetchone()
11db_conn.commit()
12
13"""
14
15def query(*args, **kwargs):
16 """Do not use. Use db.connect instead"""
17 from chart.db.connection import db_connect
18 return db_connect().query(*args, **kwargs)