SQLite user-defined function

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
alt.ua
Posts: 15
Joined: Tue 08 Oct 2019 09:24

SQLite user-defined function

Post by alt.ua » Tue 11 Jan 2022 13:50

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

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: SQLite user-defined function

Post by MaximG » Tue 18 Jan 2022 12:42

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

Post Reply