[Interest] Use SQLite math functions (-DSQLITE_ENABLE_MATH_FUNCTIONS) like sin and cos?
Till Oliver Knoll
till.oliver.knoll at gmail.com
Mon Oct 31 20:06:39 CET 2022
Am 27.10.22 um 12:46 schrieb Benjamin B (BBenj):
> Hello,
>
> Not sure if it was mentioned, but you can also copy the QSQLite
> plugin, change its name and build it with SQLite and all the options
> you need. Then use it as a Qt SQL plug-in and load it instead of the
> default one.
Thank you for that suggestion, that seems to be indeed a viable option
(besides linking with the "amalgamation code" and adding the required
functions via sqlite3_create_function - and probably a bit more
reliable, too, with respect to "version matching").
In the future the binary distribution of the upcoming Qt 6.5 will enable
the "math" (and other) functions as well in the Qt SQlite plugin.
Cheers, Oliver
More information about the Interest
mailing list