7

Is there a way to add a comment in the init file? The man page for sqlite3 doesn't mention any and I don't see any meta command that would suggest itself for such a purpose.

2 Answers 2

7

You can put any of sqlite3s dot commands or any SQL commands into the init file.

So you can just use SQL comments:

/* Hello, world! */
-- line comment
0
-- single line comment

/* multiple
 * line
 * comment */

Be comfortable to add your comments in .sqliterc file , because it's a normal SQL query file

Not the answer you're looking for? Browse other questions tagged or ask your own question.