When the pragmas are used?
When the database is created for first time or in each connection to database?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
this depends on the pragma being used. from The definitive guide to SQLite, Database Configuration:
or, in the words of your question: Temporary forms are used in each connection to database, permanent forms are used when the database is created for the first time.
the pragma documentation doesn’t explicitly specify if a pragma is temporary or permanent. however, it usually says something like
meaning
auto_vacuumis a permanent pragma, ormeaning
cache_sizeis a temporary one.so your best bet to answer your question is to carefully read the documentation for your specific pragma. alternatively, you can study the pragma source code (search for
** PRAGMA [, case sensitive).