(schemaContext: SchemaContext)
| 108 | } |
| 109 | |
| 110 | export function getSchemaDatasourceProvider(schemaContext: SchemaContext): ActiveConnectorType { |
| 111 | if (schemaContext.primaryDatasource === undefined) { |
| 112 | throw new Error('Schema must contain a datasource block') |
| 113 | } |
| 114 | return schemaContext.primaryDatasource.activeProvider |
| 115 | } |