validateSchemas MethodStatic

Determines if the schemas in the Db must or can be upgraded by comparing them with those included in the current version of the software.

validateSchemas(filePath: string, forReadWrite: boolean): SchemaState

throws IModelError If the Db was in an invalid state and that causes a problem with validating schemas

see BriefcaseDb.upgradeSchemas or StandaloneDb.upgradeSchemas

see ($docs/learning/backend/IModelDb.md#upgrading-schemas-in-an-imodel)

Parameter Type Description
filePath string Full name of the briefcase including path
forReadWrite boolean Pass true if validating for read-write scenarios - note that the schema version requirements
for opening the DgnDb read-write is more stringent than when opening the database read-only

Returns - SchemaState

Defined in

Last Updated: 30 November, 2023