Skip to content

Instance Property

version

The version property was added to SQLDatabase multiple years after the protocol’s original definition; it was in fact the first change of any kind to the protocol since Fluent 4’s original release. Therefore it is necessary to provide a default value for the benefit of drivers which haven’t been updated, to avoid a source compatibility break. Conveniently, a nil version represents an obviously desirable default: “database version is unknown”.
var version: (any SQLDatabaseReportedVersion)? { get }