Skip to content

routier-collection


routier-collection / plugins/sql-core/src / referencedColumn

Function: referencedColumn() ​

referencedColumn(property, name, dialect): string

Defined in: plugins/sql-core/src/columns.ts:291

The column a sort or aggregate names: the property's storage column when there is a property, otherwise the name as recorded.

The recorded name is the IN-MEMORY path, so emitting it for a property is how a renamed column became ORDER BY "displayName" against a table whose column is display_name.

Parameters ​

property ​

PropertyInfo<any>

name ​

string

dialect ​

SqlDialect

Returns ​

string

Released under the MIT License.