diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-04 11:20:54 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-04 13:01:11 +0000 |
commit | 8527144173f9679b2779c71d4dbdfa0571e4bd40 (patch) | |
tree | ff663df66fa7e14d5207dbb9fe2d580f92ca0b50 /psycopg/connection.h | |
parent | ca59fd8b3f7f7082e72ade390914bec5d5f944bd (diff) | |
download | psycopg2-8527144173f9679b2779c71d4dbdfa0571e4bd40.tar.gz |
Better separation between interface and state change code
The state change function has a C callable signature.
Diffstat (limited to 'psycopg/connection.h')
-rw-r--r-- | psycopg/connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/connection.h b/psycopg/connection.h index 6c39263..00430f9 100644 --- a/psycopg/connection.h +++ b/psycopg/connection.h @@ -167,8 +167,8 @@ HIDDEN void conn_close_locked(connectionObject *self); RAISES_NEG HIDDEN int conn_commit(connectionObject *self); RAISES_NEG HIDDEN int conn_rollback(connectionObject *self); HIDDEN int conn_set_autocommit(connectionObject *self, int value); -RAISES_NEG HIDDEN int conn_parse_isolevel(connectionObject *self, PyObject *pyval); -RAISES_NEG HIDDEN int conn_parse_onoff(PyObject *pyval); +RAISES_NEG HIDDEN int conn_set_session(connectionObject *self, int autocommit, + int isolevel, int readonly, int deferrable); RAISES_NEG HIDDEN int conn_switch_isolation_level(connectionObject *self, int level); RAISES_NEG HIDDEN int conn_set_client_encoding(connectionObject *self, const char *enc); HIDDEN int conn_poll(connectionObject *self); |