Page 1 of 1

SQLite user-defined function

Posted: Tue 11 Jan 2022 13:50
by alt.ua
Hello
Can i create non-scalar (e.g. table-valued) user-defined function with TLiteUtils.RegisterFunction ?

"Table-valued" means a function that returns a dataset

Re: SQLite user-defined function

Posted: Tue 18 Jan 2022 12:42
by MaximG
You can implement table functions using a virtual table mechanism, which relies on the SQLite API. Our components don't provide access to that API. For our components, you can develop a table function as an extension:

https://www.sqlite.org/loadext.html
https://docs.devart.com/litedac/devart. ... ension.htm