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


I can think of two options:

1. Create a .NET assembly that wraps Finisar-Sqlite and implements the
new functions you want.
2. Modify Sqlite as you suggest.

I would think option 1 would be quicker personally, but that's just a guess..

What would be really nice would be some way of adding "plugin" functions
to Sqlite. It would be pretty operating system dependent though.=0

Actually your only option using Finisar (aside from recompiling sqlite) is to write all the functions in C/C++ in a separate DLL, and then modify Finisar to call some main exported function in that DLL, passing in a sqlite3 * object every time it creates one. That main function would then register all the sqlite3 functions on the connection.

You can't write sqlite3 userdef functions in .NET 1.1 without modifying the core sqlite3 codebase, since .NET 1.1 doesn't support cdecl callbacks without modifying the generated MSIL and changing the signature of the delegate manually.

Robert


Reply via email to