----- Original Message ----- From: "Mikey C" <[EMAIL PROTECTED]>
To: <sqlite-users@sqlite.org>
Sent: Wednesday, May 24, 2006 7:25 AM
Subject: Re: [sqlite] Extra functions - New Project?

[snip]

This seems to work (I've tried it).

HOWEVER, it means altering func.c and I was looking for how to add these
functions in a separate C file without having to alter any existing code?

Anyone any ideas how best to extend the codebase of SQLite with minimal
alteration to existing code?

Here's the easiest way I can think of:

Add one more exported function in sqlite3 called sqlite3_open_ex() which will call sqlite3_open() and then afterwards automatically register your new functions with the sqlite3_create_function() API's.

Robert


Reply via email to