Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24863
| Date | 2012-07-04 22:02 +0800 |
|---|---|
| Subject | PyPyODBC 0.6 released! (A Pure Python ODBC module) |
| From | 江文 <jiangwen365@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1791.1341410583.4697.python-list@python.org> (permalink) |
PyPyODBC - A Pure Python ctypes ODBC module
Changes in version 0.6:
Added Cursor.commit() and Cursor.rollback(). It is now possible to use
only a cursor in your code instead of keeping track of a connection
and a cursor.
Added readonly keyword to connect. If set to True, SQLSetConnectAttr
SQL_ATTR_ACCESS_MODE is set to SQL_MODE_READ_ONLY. This may provide
better locking semantics or speed for some drivers.
Features
- Pure Python, compatible with PyPy (tested on Win32)
- Almost totally same usage as pyodbc
You can simply try pypyodbc in your existing pyodbc powered script
with the following changes:
#import pyodbc <-- Comment out
the original pyodbc importing line
import pypyodbc as pyodbc # Let pypyodbc "pretend" the pyodbc
pyodbc.connect(...) # This is pypyodbc
pretending pyodbc! They have same APIs!
...
Homepage: http://code.google.com/p/pypyodbc/
Demo Script:
http://code.google.com/p/pypyodbc/source/browse/trunk/pypyodbc/test.py
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
PyPyODBC 0.6 released! (A Pure Python ODBC module) 江文 <jiangwen365@gmail.com> - 2012-07-04 22:02 +0800
csiph-web