.echo on
.auth off
.mode column
.headers on
.prompt "> "
The sqlite3 program loads an initialization file ~/.sqliterc, if present. Since I do have one, it'll be used during dump_cmd/3 operations. It's quite a dangerous behavior since any destructive command present in ~/.sqliterc will be executed against a project's database, possibly destroying data, etc.
I couldn't find a way to make sqlite3 not load my .sqliterc, but after setting /dev/null as -init argument, test passes again (and my .sqliterc is not being loaded/used).
A test over dump_cmd/3 was failing with a strange error:
The reason? Well, it's probably my
.sqliterc
:The
sqlite3
program loads an initialization file~/.sqliterc
, if present. Since I do have one, it'll be used duringdump_cmd/3
operations. It's quite a dangerous behavior since any destructive command present in~/.sqliterc
will be executed against a project's database, possibly destroying data, etc.I couldn't find a way to make
sqlite3
not load my.sqliterc
, but after setting/dev/null
as-init
argument, test passes again (and my.sqliterc
is not being loaded/used).