xo::db::Attribute method attribute_reference (public)

 <instance of xo::db::Attribute[i]> attribute_reference tn

Defined in packages/xotcl-core/tcl/05-db-procs.tcl

Parameters:
tn (required)
Returns:
the name of a DB attribute, potentially with an alias name.

Testcases:
No testcase defined.
Source code:
if {${:column_name} ne ${:name}} {
  return "$tn.${:column_name} AS ${:name}"
} else {
  return "$tn.${:name}"
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: