I use the command line sqlite3 executable to check queries I make from my code.
Is there a way to read in pragma statements or other session setup (“.mode csv” for example) when the executable starts up?
I know I can do a “.read ” once I’m in, but that’s tedious.
Put a
.sqlitercfile in your home directory withthe commands you want executed each time you start
the sqlite3 command line tool.
Unix and Linux use
~/.sqliterc; Windows tries to find thelocation of .sqliterc using the environment variables
USERPROFILEHOMEHOMEDRIVEandHOMEPATH.