python Programming Glossary: dsn
Error: AttributeError: Transaction instance has no attribute 'trans_handle' http://stackoverflow.com/questions/12781696/error-attributeerror-transaction-instance-has-no-attribute-trans-handle 'D ThirdTask test.fdb' conn firebirdsql.create_database dsn 'localhost 3050 test.fdb' user 'sysdba' password 'masterkey'..
Python: Time a code segment for testing performance (with timeit) http://stackoverflow.com/questions/2866380/python-time-a-code-segment-for-testing-performance-with-timeit '250' rannumber #print rannumber conn ibm_db.pconnect dsn myDB usrname secretPWD for r in range 5 print Run s n r ibm_db.execute..
How can I make cx-oracle bind the results of a query to a dictionary rather than a tuple? http://stackoverflow.com/questions/4468071/how-can-i-make-cx-oracle-bind-the-results-of-a-query-to-a-dictionary-rather-than Though I can't figure out how it works. def connect dsn cx_Oracle.makedsn host 1521 sid orcl cx_Oracle.connect 'scott.. figure out how it works. def connect dsn cx_Oracle.makedsn host 1521 sid orcl cx_Oracle.connect 'scott tiger@' dsn curs.. host 1521 sid orcl cx_Oracle.connect 'scott tiger@' dsn curs orcl.cursor sql select from sometable curs.execute sql..
zc.lockfile.LockError in ZODB http://stackoverflow.com/questions/5128807/zc-lockfile-lockerror-in-zodb an example configuration zodb relstorage postgresql # The dsn is optional as are each of the parameters in the dsn. dsn dbname.. # The dsn is optional as are each of the parameters in the dsn. dsn dbname 'zodb' user 'username' host 'localhost' password.. dsn is optional as are each of the parameters in the dsn. dsn dbname 'zodb' user 'username' host 'localhost' password 'pass'..
Creating a logging handler to connect to Oracle? http://stackoverflow.com/questions/935930/creating-a-logging-handler-to-connect-to-oracle logging class DBHandler logging.Handler def __init__ self dsn uid '' pwd '' logging.Handler.__init__ self import mx.ODBC.Windows.. logging.Handler.__init__ self import mx.ODBC.Windows self.dsn dsn self.uid uid self.pwd pwd self.conn mx.ODBC.Windows.connect.. self import mx.ODBC.Windows self.dsn dsn self.uid uid self.pwd pwd self.conn mx.ODBC.Windows.connect..
|