mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module (GH-24203)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
f3fa63ec75
commit
f461a7fc3f
12 changed files with 77 additions and 438 deletions
|
@ -29,6 +29,12 @@
|
|||
#define PYSQLITE_VERSION "2.6.0"
|
||||
#define MODULE_NAME "sqlite3"
|
||||
|
||||
typedef struct {
|
||||
PyObject *lru_cache;
|
||||
} pysqlite_state;
|
||||
|
||||
extern pysqlite_state *pysqlite_get_state(PyObject *module);
|
||||
|
||||
extern PyObject* pysqlite_Error;
|
||||
extern PyObject* pysqlite_Warning;
|
||||
extern PyObject* pysqlite_InterfaceError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue