columnRefCount

fnsize_t columnRefCount(Expr e, string name) @safe pure nothrow

The number of direct column references to name in the tree - the positions an inline substitution would replace. over partition keys reference columns by name without a reference node and are NOT counted (their use is probed separately by overKeyRef).

Parameters

ethe expression to count in
namethe referenced column name

Returns

the reference count.