hongqn / umysqldb

A DB-API compatible wrapper for umysql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

umysqldb

A MySQLdb compatible wrapper around ultramysql.

Usage

>>> import umysqldb
>>> umysqldb.install_as_MySQLdb()
>>> import MySQLdb
>>> MySQLdb is umysqldb
True
>>> conn = MySQLdb.connect(host='localhost')
>>> curs = conn.cursor()
>>> curs.execute("select 1")
1
>>> curs.fetchone()
(1L,)
>>> conn.close()
Build Status

About

A DB-API compatible wrapper for umysql

License:Other


Languages

Language:Python 100.0%