SQLite support several arguments for dump command and preserve-rowids is one of them:
.help .dump
.dump ?OBJECTS? Render database content as SQL
Options:
--data-only Output only INSERT statements
--newlines Allow unescaped newline characters in output
--nosys Omit system tables (ex: "sqlite_stat1")
--preserve-rowids Include ROWID values in the output
OBJECTS is a LIKE pattern for tables, indexes, triggers or views to dump
Additional LIKE patterns can be given in subsequent arguments
It can be particularly useful for vector indices because internally they use ROWID by default and internal index on-disk data contains ROWID values
Context
SQLite support several arguments for
dump
command andpreserve-rowids
is one of them:It can be particularly useful for vector indices because internally they use
ROWID
by default and internal index on-disk data containsROWID
values