There doesn't appear to be any way to get a TableName from a Table (unless I'm just missing the function that does this).
My suggestion would be to add a TableName field to TableInfo, so that you can get a Table's TableName with the tableInfo function.
My reason for wanting this is as follows.
I am trying to construct a raw query string that I can pass to rawQuery.
I want to generate the table name from the Table definition. This is so that if I ever change the table name, I only have to change it in one place (the Table definition), instead of two places, the Table definition and the raw query string.
There doesn't appear to be any way to get a
TableName
from aTable
(unless I'm just missing the function that does this).My suggestion would be to add a
TableName
field toTableInfo
, so that you can get aTable
'sTableName
with thetableInfo
function.My reason for wanting this is as follows.
I am trying to construct a raw query string that I can pass to
rawQuery
.I want to generate the table name from the
Table
definition. This is so that if I ever change the table name, I only have to change it in one place (theTable
definition), instead of two places, theTable
definition and the raw query string.