Function: resolveTableRef()
function resolveTableRef(model, text): string | null;
Resolves what a user or URL wrote to a table id: exact id, public.<name>, a unique bare
name, a unique alias, case-insensitive unique name. null when none or ambiguous.
The steps run in that order; the first step with exactly one match wins, and a step with
several matches makes the result null (ambiguous). The case-insensitive step compares the
name, the id and schema.name.
Parameters
model
text
string
Returns
string | null