• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*[clinic input]
2 preserve
3 [clinic start generated code]*/
4 
5 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
6 #  include "pycore_gc.h"          // PyGC_Head
7 #  include "pycore_runtime.h"     // _Py_ID()
8 #endif
9 #include "pycore_modsupport.h"    // _PyArg_UnpackKeywords()
10 
11 PyDoc_STRVAR(pysqlite_connect__doc__,
12 "connect($module, /, database, timeout=5.0, detect_types=0,\n"
13 "        isolation_level=\'\', check_same_thread=True,\n"
14 "        factory=ConnectionType, cached_statements=128, uri=False, *,\n"
15 "        autocommit=sqlite3.LEGACY_TRANSACTION_CONTROL)\n"
16 "--\n"
17 "\n"
18 "Open a connection to the SQLite database file \'database\'.\n"
19 "\n"
20 "You can use \":memory:\" to open a database connection to a database that\n"
21 "resides in RAM instead of on disk.\n"
22 "\n"
23 "Note: Passing more than 1 positional argument to _sqlite3.connect() is\n"
24 "deprecated. Parameters \'timeout\', \'detect_types\', \'isolation_level\',\n"
25 "\'check_same_thread\', \'factory\', \'cached_statements\' and \'uri\' will\n"
26 "become keyword-only parameters in Python 3.15.\n"
27 "");
28 
29 #define PYSQLITE_CONNECT_METHODDEF    \
30     {"connect", _PyCFunction_CAST(pysqlite_connect), METH_FASTCALL|METH_KEYWORDS, pysqlite_connect__doc__},
31 /*[clinic end generated code: output=69b9b00da71c3c0a input=a9049054013a1b77]*/
32