~jbaker/storm/nose_plugin

« back to all changes in this revision

Viewing changes to storm/databases/postgres.py

  • Committer: Christopher Armstrong
  • Date: 2007-08-07 15:30:56 UTC
  • mfrom: (162 trunk)
  • mto: This revision was merged to the branch mainline in revision 167.
  • Revision ID: radix@twistedmatrix.com-20070807153056-rct6ni77fse63s1d
mergeĀ fromĀ public-trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
    def connect(self):
157
157
        raw_connection = psycopg2.connect(self._dsn)
158
158
        raw_connection.set_client_encoding("UTF8")
 
159
        raw_connection.set_isolation_level(
 
160
            psycopg2.extensions.ISOLATION_LEVEL_SERIALIZABLE)
159
161
        return self._connection_factory(self, raw_connection)
160
162
 
161
163