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

Exec generic Sql commands when connection opens (PRAGMA) #678

Open
nhaberl opened this issue Dec 22, 2022 · 1 comment
Open

Exec generic Sql commands when connection opens (PRAGMA) #678

nhaberl opened this issue Dec 22, 2022 · 1 comment

Comments

@nhaberl
Copy link

nhaberl commented Dec 22, 2022

Hello, is there a way to execute Sql commands on a central point whenever a connection opens ...
In Sqlite I would like to set a handful of PRAGMA statements on each connection before any user generated connad executes against the database.

Like here: https://stackoverflow.com/questions/39930559/how-to-set-multiple-pragmas-using-sqlite-net

@schotime
Copy link
Owner

You can use this method, or one of the other ones that you can override in an inherited class you create.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants