MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / tmpAlias

Function tmpAlias

packages/orm/src/client/query-utils.ts:533–539  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

531 * Create an alias name for a temporary table or column name.
532 */
533export function tmpAlias(name: string) {
534 if (!name.startsWith(TEMP_ALIAS_PREFIX)) {
535 return `${TEMP_ALIAS_PREFIX}${name}`;
536 } else {
537 return name;
538 }
539}

Callers 7

buildRelationSelectionFunction · 0.90
buildRelationJSONFunction · 0.90
buildRelationJSONMethod · 0.90
buildToOneRelationFilterFunction · 0.90
applyRelationOrderByFunction · 0.90
buildCountJsonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected