Skip to content
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

Added support for setting SQLite limits #1548

Merged
merged 1 commit into from Jul 31, 2022

Commits on Jul 31, 2022

  1. support sqlite3_limit(id, value) via db.configure('limit', id, value)

    This extends `db.configure` to support the `sqlite3_limit` method.
    Calling `db.configure('limit', sqlite3.LIMIT_XXX, value)` is equivalent to
    calling `sqlite3_limit(db, SQLITE_LIMIT_XXX, value)`.
    
    For example, to prohibit attaching extra databases on a given database
    connection, you'd call `db.configure('limit', sqlite3.LIMIT_ATTACHED, 0)`.
    paulfitz committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    4dabcf5 View commit details
    Browse the repository at this point in the history