(node: AstNode)
| 168 | * Determines if the given data model is a delegate model (i.e. marked with `@@delegate` attribute). |
| 169 | */ |
| 170 | export 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 |
no test coverage detected