Skip to content

Instance Method

isNewer(than:)

Check whether the current version (i.e. self) is newer than the one given.
func isNewer(than otherVersion: any SQLDatabaseReportedVersion) -> Bool

Parameters

otherVersion

The version to compare against. type(of: self) must be the same as type(of: otherVersion).

Return Value

true if otherVersion is equal to or less than self, otherwise false.

Discussion

Warning

This method has been deprecated; use the > operator instead.