コード例 #1
0
ファイル: lobject.py プロジェクト: cdepman/falcon_api
 def export(self, file_name):
     """Export large object to given file."""
     self._conn._begin_transaction()
     if isinstance(file_name, six.text_type):
         file_name = file_name.encode(self._conn._py_enc)
     if libpq.lo_export(self._conn._pgconn, self._oid, file_name) < 0:
         raise self._conn._create_exception()
コード例 #2
0
 def export(self, file_name):
     """Export large object to given file."""
     self._conn._begin_transaction()
     if isinstance(file_name, six.text_type):
         file_name = file_name.encode(self._conn._py_enc)
     if libpq.lo_export(self._conn._pgconn, self._oid, file_name) < 0:
         raise self._conn._create_exception()
コード例 #3
0
ファイル: lobject.py プロジェクト: thomaslegg/psycopg2cffi
 def export(self, file_name):
     """Export large object to given file."""
     self._conn._begin_transaction()
     if libpq.lo_export(self._conn._pgconn, self._oid, file_name) < 0:
         raise self._conn._create_exception()
コード例 #4
0
ファイル: lobject.py プロジェクト: apendleton/psycopg2cffi
 def export(self, file_name):
     """Export large object to given file."""
     self._conn._begin_transaction()
     if libpq.lo_export(self._conn._pgconn, self._oid, file_name) < 0:
         raise self._conn._create_exception()