Skip to content

Instance Method

isOlder(than:)

Returns true if the provided version is newer than the version represented by self.
func isOlder(than otherVersion: any SQLDatabaseReportedVersion) -> Bool

Parameters

otherVersion

The version to compare against.

Return Value

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

Discussion

Implementations of this method must check that the provided version and self represent the same type. If no implementation is provided, the default is to compare the type(of:) both versions for equality and the stringValue of both versions for lexocographic ordering.

Warning

This method has been deprecated for callers, although it remains a protocol requirement for drivers. Users should use the == operator instead.

Default Implementations

SQLDatabaseReportedVersion Implementations