~james-w/ubuntu/lucid/psycopg2/precise-backport

« back to all changes in this revision

Viewing changes to psycopg/psycopg.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella, Jakub Wilk, Fabio Tranchitella
  • Date: 2011-06-19 18:25:53 UTC
  • mfrom: (5.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110619182553-uye7z0g5ewab98px
Tags: 2.4.2-1
[ Jakub Wilk ]
* Add Debian Python Modules Team to Uploaders.

[ Fabio Tranchitella ]
* New upstream release.
* debian/watch: updated, use pypi.
* debian/control, debian/rules: switched to dh_python2.
* debian/control: bumped Standard-Version to 3.9.2, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
/* postgresql<->python encoding map */
106
106
extern HIDDEN PyObject *psycoEncodings;
107
107
 
 
108
/* SQL NULL */
 
109
extern HIDDEN PyObject *psyco_null;
 
110
 
108
111
typedef struct {
109
112
    char *pgenc;
110
113
    char *pyenc;
113
116
/* the Decimal type, used by the DECIMAL typecaster */
114
117
HIDDEN PyObject *psyco_GetDecimalType(void);
115
118
 
 
119
/* forward declaration */
 
120
typedef struct cursorObject cursorObject;
 
121
 
116
122
/* some utility functions */
117
 
HIDDEN void psyco_set_error(PyObject *exc, PyObject *curs,  const char *msg,
 
123
HIDDEN void psyco_set_error(PyObject *exc, cursorObject *curs, const char *msg,
118
124
                            const char *pgerror, const char *pgcode);
119
125
 
120
126
HIDDEN char *psycopg_escape_string(PyObject *conn,
121
127
              const char *from, Py_ssize_t len, char *to, Py_ssize_t *tolen);
 
128
HIDDEN char *psycopg_escape_identifier_easy(const char *from, Py_ssize_t len);
 
129
HIDDEN char *psycopg_strdup(const char *from, Py_ssize_t len);
 
130
HIDDEN PyObject * psycopg_ensure_bytes(PyObject *obj);
 
131
HIDDEN PyObject * psycopg_ensure_text(PyObject *obj);
 
132
HIDDEN int psycopg_is_text_file(PyObject *f);
122
133
 
123
134
/* Exceptions docstrings */
124
135
#define Error_doc \
153
164
 
154
165
#ifdef PSYCOPG_EXTENSIONS
155
166
#define QueryCanceledError_doc \
156
 
"Error related to SQL query cancelation."
 
167
"Error related to SQL query cancellation."
157
168
 
158
169
#define TransactionRollbackError_doc \
159
170
"Error causing transaction rollback (deadlocks, serialisation failures, etc)."