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

FEATURE | Optional sqlite3 connection parameters #57

Closed
Phizilion opened this issue Dec 1, 2021 · 1 comment
Closed

FEATURE | Optional sqlite3 connection parameters #57

Phizilion opened this issue Dec 1, 2021 · 1 comment
Labels
feature New feature request

Comments

@Phizilion
Copy link
Contributor

Phizilion commented Dec 1, 2021

I would like to be able to set sqlite3.connection parameters. For example, check_some_thread.

I will be grateful for help :)

maybe something like that?

db = SQLite3x("db.db", connection_parameters={"check_some_thread": False})
@v1a0 v1a0 changed the title sqlite3 connection parameters FEATURE | Optional sqlite3 connection parameters Dec 2, 2021
@v1a0 v1a0 added the feature New feature request label Dec 2, 2021
v1a0 added a commit that referenced this issue Jan 20, 2022
- Added feature to set optional sqlite3 connection parameters #57
- Added option to desable connetion with Database object init #56
- [IN PROGRESS] "With-as" statement #55
- Fixed BUG | Typing mistakes #51
- Docs update

Co-Authored-By: Phizilion <[email protected]>
@v1a0
Copy link
Owner

v1a0 commented Jan 22, 2022

Added since v0.2.0.4

db = SQLite3x(
    path='database.db',
    init_connection=False    #  Disable connection initialization within database class object
)

db.connect(check_same_thread=False)    # example

print(db.tables_names)

db.disconnect()

@v1a0 v1a0 closed this as completed Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants