Then I think it is better to use directly:
select * from tablename
instead current implementation, instead of just giving the table name. It is easy the check it starts with 'select * ' and then extract the table name as last token.
Also, the documentation of db_text will need to be extended with a new section about 'Raw Query' where to present what is implemented.
—
Reply to this email directly or view it on GitHub.