validateModel
Understanding the validateModel method
validateModel(model: Model): Promise<ValidationResult>
Description: Validates a data model against the database schema.
Parameters:
model
(Model): AModel
object representing the data model to validate.
Returns:
A
Promise
that resolves to aValidationResult
object or rejects with anSQLError
.
Example:
Last updated