You are not logged in.
Pages: 1
Hi,
I trying to implement my own virtual table module, but while executing statement:
Execute('CREATE VIRTUAL TABLE test USING mylog(temptest.log);');
I got error: no suh module 'mylog'
In documentation I read:
7.3.2. Defining a Virtual Table module
Here is how the TSQLVirtualTableLog class type is defined, which will implement a Virtual Table module named "Log". Adding a new module is just made by overriding some Delphi methods
But where to define module name "Log" ??? (in my case - "mylog") ?
No info about it in documentation ! And I cant find "Log" module name in TSQLVirtualTableLog in mormot sources !
Thanks for help !
Offline
I found solution in mORMot sources...)
I must have class TSQLVirtualTableMyLog where "MyLog" will be module name and TSQLVirtualTable will be trimmed
Please write about this in main documentation topic about "virutal tables magic" !
Last edited by amsdev (2021-02-23 22:22:53)
Offline
I have added it to the main doc.
https://synopse.info/fossil/info/1a2a29754f
Offline
Pages: 1