Skip to content

Commit e59af3b

Browse files
author
Erlend E. Aasland
committed
Clinic
1 parent 754fdc6 commit e59af3b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Modules/_sqlite/clinic/connection.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pysqlite_connection_init(PyObject *self, PyObject *args, PyObject *kwargs)
2525
PyObject *isolation_level = NULL;
2626
int check_same_thread = 1;
2727
PyObject *factory = (PyObject*)pysqlite_ConnectionType;
28-
int cached_statements = 100;
28+
int cached_statements = 128;
2929
int uri = 0;
3030

3131
fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 8, 0, argsbuf);
@@ -811,4 +811,4 @@ pysqlite_connection_exit(pysqlite_Connection *self, PyObject *const *args, Py_ss
811811
#ifndef PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF
812812
#define PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF
813813
#endif /* !defined(PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF) */
814-
/*[clinic end generated code: output=8332a2d5e3236bb3 input=a9049054013a1b77]*/
814+
/*[clinic end generated code: output=eb6b4eda33d396f1 input=a9049054013a1b77]*/

Modules/_sqlite/clinic/module.c.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ preserve
55
PyDoc_STRVAR(pysqlite_connect__doc__,
66
"connect($module, /, database, timeout=5.0, detect_types=0,\n"
77
" isolation_level=<unrepresentable>, check_same_thread=True,\n"
8-
" factory=ConnectionType, cached_statements=100, uri=False)\n"
8+
" factory=ConnectionType, cached_statements=128, uri=False)\n"
99
"--\n"
1010
"\n"
1111
"Opens a connection to the SQLite database file database.\n"
@@ -36,7 +36,7 @@ pysqlite_connect(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
3636
PyObject *isolation_level = NULL;
3737
int check_same_thread = 1;
3838
PyObject *factory = (PyObject*)pysqlite_ConnectionType;
39-
int cached_statements = 100;
39+
int cached_statements = 128;
4040
int uri = 0;
4141

4242
args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 8, 0, argsbuf);
@@ -331,4 +331,4 @@ pysqlite_adapt(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
331331
exit:
332332
return return_value;
333333
}
334-
/*[clinic end generated code: output=c0ef08ee13444be8 input=a9049054013a1b77]*/
334+
/*[clinic end generated code: output=9f2160e2d092db1e input=a9049054013a1b77]*/

Modules/_sqlite/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pysqlite_connection_init_impl(pysqlite_Connection *self,
9595
int detect_types, PyObject *isolation_level,
9696
int check_same_thread, PyObject *factory,
9797
int cached_statements, int uri)
98-
/*[clinic end generated code: output=dc19df1c0e2b7b77 input=933dc59875f687ee]*/
98+
/*[clinic end generated code: output=dc19df1c0e2b7b77 input=3706141ad7f68f73]*/
9999
{
100100
int rc;
101101

Modules/_sqlite/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pysqlite_connect_impl(PyObject *module, PyObject *database, double timeout,
8787
int detect_types, PyObject *isolation_level,
8888
int check_same_thread, PyObject *factory,
8989
int cached_statements, int uri)
90-
/*[clinic end generated code: output=450ac9078b4868bb input=938c5058ce37130a]*/
90+
/*[clinic end generated code: output=450ac9078b4868bb input=9d37b2ca6a07ed70]*/
9191
{
9292
if (isolation_level == NULL) {
9393
isolation_level = PyUnicode_FromString("");

0 commit comments

Comments
 (0)