Prev | Index | Next

Simple queries

# in DB-API:
# c = conn.cursor()
# s = 'SELECT * FROM names WHERE KEY = %s'
# c.execute(s, key)
# result = c.fetchall()

s = 'SELECT * FROM names WHERE KEY = %s'
deferred = connectionPool.runQuery(s, key)