diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-07-29 09:21:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 09:21:45 (GMT) |
commit | d542742128b634264d5b6796297613975211b43b (patch) | |
tree | e541d59593fe7df7bd96367d60ac96b1e7e76606 /Modules/_sqlite/microprotocols.h | |
parent | 47fd4726a2ce8599cc397ddeae40f70eb471e868 (diff) | |
download | cpython-d542742128b634264d5b6796297613975211b43b.zip cpython-d542742128b634264d5b6796297613975211b43b.tar.gz cpython-d542742128b634264d5b6796297613975211b43b.tar.bz2 |
bpo-42064: Optimise `sqlite3` state access, part 1 (GH-27273)
Prepare for module state:
- Add "get state by defining class" and "get state by module def" stubs
- Add AC defining class when needed
- Add state pointer to connection context
- Pass state as argument to utility functions
Automerge-Triggered-By: GH:encukou
Diffstat (limited to 'Modules/_sqlite/microprotocols.h')
-rw-r--r-- | Modules/_sqlite/microprotocols.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_sqlite/microprotocols.h b/Modules/_sqlite/microprotocols.h index e9adef9..e4d9038 100644 --- a/Modules/_sqlite/microprotocols.h +++ b/Modules/_sqlite/microprotocols.h @@ -41,7 +41,8 @@ extern int pysqlite_microprotocols_init(PyObject *module); extern int pysqlite_microprotocols_add( PyTypeObject *type, PyObject *proto, PyObject *cast); -extern PyObject *pysqlite_microprotocols_adapt( - PyObject *obj, PyObject *proto, PyObject *alt); +extern PyObject *pysqlite_microprotocols_adapt(pysqlite_state *state, + PyObject *obj, PyObject *proto, + PyObject *alt); #endif /* !defined(PSYCOPG_MICROPROTOCOLS_H) */ |