Seaquel
SQLite error code

SQLITE_OK_LOAD_PERMANENTLY

SQLITE_OK_LOAD_PERMANENTLY is SQLite result code 256, an extended code of SQLITE_OK.

Result code256
NameSQLITE_OK_LOAD_PERMANENTLY
Primary codeSQLITE_OK

What it means

The sqlite3_load_extension() interface loads an extension into a single database connection. The default behavior is for that extension to be automatically unloaded when the database connection closes. However, if the extension entry point returns SQLITE_OK_LOAD_PERMANENTLY instead of SQLITE_OK, then the extension remains loaded into the process address space after the database connection closes. In other words, the xDlClose method of the sqlite3_vfs object is not called for the extension when the database connection closes.

The SQLITE_OK_LOAD_PERMANENTLY return code is useful to loadable extensions that register new VFSes, for example.

Source: SQLite Result and Error Codes