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

Function isDelegateModel

packages/language/src/utils.ts:170–172  ·  view source on GitHub ↗
(node: AstNode)

Source from the content-addressed store, hash-verified

168 * Determines if the given data model is a delegate model (i.e. marked with `@@delegate` attribute).
169 */
170export function isDelegateModel(node: AstNode) {
171 return isDataModel(node) && hasAttribute(node, '@@delegate');
172}
173
174/**
175 * Returns the datasource provider literal (e.g. `'postgresql'`) declared in the schema, or undefined

Callers 4

_checkConstraintMethod · 0.90
validateInheritsMethod · 0.90
getRecursiveBasesFunction · 0.70

Calls 2

isDataModelFunction · 0.90
hasAttributeFunction · 0.70

Tested by

no test coverage detected