#1 2021-02-23 21:51:55

amsdev
Member
Registered: 2011-09-16
Posts: 23

Question about virtual table module name

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

#2 2021-02-23 22:22:27

amsdev
Member
Registered: 2011-09-16
Posts: 23

Re: Question about virtual table module name

I found solution in mORMot sources...)

I must have class TSQLVirtualTableMyLog where "MyLog" will be module name and TSQLVirtualTable will be trimmed smile
Please write about this in main documentation topic about "virutal tables magic" !

Last edited by amsdev (2021-02-23 22:22:53)

Offline

#3 2021-02-24 08:14:10

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,548
Website

Re: Question about virtual table module name

I have added it to the main doc.
https://synopse.info/fossil/info/1a2a29754f

Online

Board footer

Powered by FluxBB