Re: [sqlite] Problem to understand "Persistent Loadable Extensions"

2019-02-12 Thread Ricardo Torquato
Thanks! I’m trying to transform the extension-functions.c in a persistent extension. The original entry function is that: int sqlite3_extension_init( sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi){ SQLITE_EXTENSION_INIT2(pApi); RegisterExtensionFunctions(db); return

Re: [sqlite] Problem to understand "Persistent Loadable Extensions"

2019-02-12 Thread Richard Hipp
On 2/11/19, Ricardo Torquato wrote: > Hey guys! > > According to "Persistent Loadable Extensions” topic on > https://www.sqlite.org/loadext.html if the initialization procedure returns > SQLITE_OK_LOAD_PERMANENTLY (256) the extension should persist on the > database file instead of just belong to

[sqlite] Problem to understand "Persistent Loadable Extensions"

2019-02-11 Thread Ricardo Torquato
Hey guys! According to "Persistent Loadable Extensions” topic on https://www.sqlite.org/loadext.html if the initialization procedure returns SQLITE_OK_LOAD_PERMANENTLY (256) the extension should persist on the database file instead of just belong to the current connection. So I’ve downloaded