Hello!

On Thursday 17 September 2009 07:25:33 P Kishor wrote:
> pursuant to a recent email, I am wondering if I can build
> extension-functions.c
> <http://www.sqlite.org/contrib/download/extension-functions.c?get=25>
> so that it is permanently available within sqlite library, and not
> just when loaded manually via a command. If I can, could someone
> please guide me to a tutorial for doing so?


In main.c add these lines

#ifdef SQLITE_ENABLE_FUNCTIONS
  if( !db->mallocFailed && rc==SQLITE_OK ){
    rc = sqlite3FunctionsInit(db);
  }
#endif

The modified extension is available here
http://mobigroup.ru/files/sqlite-ext/functions/

And compile with -DSQLITE_ENABLE_FUNCTIONS

Best regards, Alexey Pechnikov.
http://pechnikov.tel/
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to