8000 gh-128505: Expose an interface to sqlite3_file_control by hashbrowncipher · Pull Request #128507 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-128505: Expose an interface to sqlite3_file_control #128507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change arg
  • Loading branch information
hashbrowncipher committed Jan 7, 2025
commit c42bbd5d3a28c4107bbb4a3012b31b027fe32a26
8 changes: 4 additions & 4 deletions Modules/_sqlite/clinic/connection.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,7 @@ _sqlite3.Connection.file_control as pysqlite_connection_file_control

op: int
The SQLITE_FCNTL_* constant to invoke.
arg: long
arg: int
The argument to pass to the operation.
/
name: str = "main"
Expand All @@ -2259,8 +2259,8 @@ Invoke a file control method on the database.

static PyObject *
pysqlite_connection_file_control_impl(pysqlite_Connection *self, int op,
long arg, const char *name)
/*[clinic end generated code: output=ab3230aaca500391 input=506d31506027e9ce]*/
int arg, const char *name)
/*[clinic end generated code: output=8a9f04093fc1f59c input=3833150b82ba5488]*/
{
if(!is_int_fcntl(op)) {
PyErr_Format(PyExc_ValueError, "unknown file control 'op': %d", op);
Expand Down
0