In TSQL there is
SET IDENTITY_INSERT ON;
is there a functional equivalent in SQLite?
SQLite always allows inserting a value into the primary key column; automatically generated values are used only when the inserted value is NULL
(explicitly or omitted).
For details, see the documentation.