I reorganized DB-API for IronPython codes a lot. It is now located under the separate directory, besides lib: http://sparcs.kaist.ac.kr/~tinuviel/fepy/dbapi/
connect()-compatible wrappers for MySQLdb, psycopg, and sqlite are now moved to their own files. connect() is now a module-level function, not a static method, and this makes importing them exactly like their CPython equivalents. dbapi.py now provides generic_connect() function: def generic_connect(assembly, typename, data) "assembly" is a string, corresponding to DBProviderAssembly key in AppSettings. "typename" is a string, corresponding to DBConnectionType key in AppSettings. "data" is either a string, corresponding to DBConnectionString key in AppSettings, or a dictionary, which can be passed to DbConnectionStringBuilder to build the final connection string. This function returns a Python DB-API specification compliant Connection object. For an example how to use this generic interface, have a look at this example: http://sparcs.kaist.ac.kr/~tinuviel/fepy/dbapi/MySQLdb.py -- Seo Sanghyeon _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
