Jakub Ladman wrote:
Thank you very much.
Not only my english is poor, but my coordinated geometry too :-(
But my software will make much more geometrical computations, so probably some
in queries too.
Please let You (or someone) direct me to the relevant part of documentation
for defining new functions.
Jakub,
SQLite itself use the public C API to add the standard functions when it
initializes, so there are some very good examples of writing custom
functions in the sqlite source file func.c (see
http://www.sqlite.org/cvstrac/fileview?f=sqlite/src/func.c&v=1.136 ).
You will need to write C functions that do similar things as the samples
in func.c and add them to your instance of sqlite using the API at
http://www.sqlite.org/capi3ref.html#sqlite3_create_function.
Then you can call your custom functions from your SQL statements.
I have also posted some samples of user defined functions on this list.
You may want to search for them if you don't finfd the sqlite source
clear enough.
HTH
Dennis Cote
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------