diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-14 16:37:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-14 16:37:44 +0200 |
commit | 6fbaba552a52f93ecbe8be000888afa0b65b967e (patch) | |
tree | 361cc3c1b564949379612eb7052a7cd58d06d46b /Modules/_sqlite/clinic/_sqlite3.connect.c.h | |
parent | 608927b01447b110de5094271fbc4d49c60130b0 (diff) | |
download | cpython-6fbaba552a52f93ecbe8be000888afa0b65b967e.tar.gz cpython-6fbaba552a52f93ecbe8be000888afa0b65b967e.zip |
gh-107938: Synchonise the signature of of sqlite3.connect and sqlite3.Connection.__init__ (#107939)
Diffstat (limited to 'Modules/_sqlite/clinic/_sqlite3.connect.c.h')
-rw-r--r-- | Modules/_sqlite/clinic/_sqlite3.connect.c.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Modules/_sqlite/clinic/_sqlite3.connect.c.h b/Modules/_sqlite/clinic/_sqlite3.connect.c.h new file mode 100644 index 00000000000..0c4ebdf0590 --- /dev/null +++ b/Modules/_sqlite/clinic/_sqlite3.connect.c.h @@ -0,0 +1,25 @@ +/*[clinic input] +preserve +[clinic start generated code]*/ + +#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE) +# include "pycore_gc.h" // PyGC_Head +# include "pycore_runtime.h" // _Py_ID() +#endif + + +PyDoc_STRVAR(pysqlite_connect__doc__, +"connect($module, /, database, timeout=5.0, detect_types=0,\n" +" isolation_level=\'\', check_same_thread=True,\n" +" factory=ConnectionType, cached_statements=128, uri=False, *,\n" +" autocommit=sqlite3.LEGACY_TRANSACTION_CONTROL)\n" +"--\n" +"\n" +"Open a connection to the SQLite database file \'database\'.\n" +"\n" +"You can use \":memory:\" to open a database connection to a database that\n" +"resides in RAM instead of on disk."); + +#define PYSQLITE_CONNECT_METHODDEF \ + {"connect", _PyCFunction_CAST(pysqlite_connect), METH_FASTCALL|METH_KEYWORDS, pysqlite_connect__doc__}, +/*[clinic end generated code: output=6a8458c9edf8fb7f input=a9049054013a1b77]*/ |