getTableName which is no issue. However for using db.query.<schema name> we need the schema name (i.e. the js variable name), not the table name, but the table itself doesn't know it's variable name.db.select(), however i've found it quite cumbersome to make such a function for it:db.query which would need:['id', 'name'] to that format internally. Hence we thought the db.query would be a better choice here. However the issue is that using db.query.<schema name> needs the schema name, not the table name. And that schema name... is more difficult to get (especially in a generic way).appSchema), however then we hardcode the schema in there, which makes it more difficult to use in generic functionality (see first comment with code, otherwise post it to long).