summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/module.h
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-06-03 19:59:26 (GMT)
committerGitHub <noreply@github.com>2021-06-03 19:59:26 (GMT)
commitf461a7fc3f8740b9e79e8874175115a3474e5930 (patch)
treec3338f262e91aa6468ce5be059d473bf830a0274 /Modules/_sqlite/module.h
parentf3fa63ec75fdbb4a08a10957a5c631bf0c4a5970 (diff)
downloadcpython-f461a7fc3f8740b9e79e8874175115a3474e5930.zip
cpython-f461a7fc3f8740b9e79e8874175115a3474e5930.tar.gz
cpython-f461a7fc3f8740b9e79e8874175115a3474e5930.tar.bz2
bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module (GH-24203)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Modules/_sqlite/module.h')
-rw-r--r--Modules/_sqlite/module.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_sqlite/module.h b/Modules/_sqlite/module.h
index 9aede92..a40e86e 100644
--- a/Modules/_sqlite/module.h
+++ b/Modules/_sqlite/module.h
@@ -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;