Enumerations
The following enumerations are available globally.
-
A namespace for database Combine publishers.
See moreDeclaration
Swift
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public enum DatabasePublishers
-
A kind of database event. See the
See moreTransactionObserver
protocol for more information.Declaration
Swift
@frozen public enum DatabaseEventKind
-
A date modifier for SQLite date functions such as
julianDay(_:_:)
anddateTime(_:_:)
.For more information, see https://www.sqlite.org/lang_datefunc.html
See moreDeclaration
Swift
public enum SQLDateModifier : SQLSpecificExpressible
-
DatabaseDateEncodingStrategy
specifies howEncodableRecord
types that also adopt the standardEncodable
protocol encode theirDate
properties.For example:
See morestruct Player: EncodableRecord, Encodable { static let databaseDateEncodingStrategy = DatabaseDateEncodingStrategy.timeIntervalSince1970 var name: String var registrationDate: Date // encoded as an epoch timestamp }
Declaration
Swift
public enum DatabaseDateEncodingStrategy
-
DatabaseUUIDEncodingStrategy
specifies howEncodableRecord
types that also adopt the standardEncodable
protocol encode theirUUID
properties.For example:
See morestruct Player: EncodableProtocol, Encodable { static let databaseUUIDEncodingStrategy = DatabaseUUIDEncodingStrategy.uppercaseString // encoded in a string like "E621E1F8-C36C-495A-93FC-0C247A3E6E5F" var uuid: UUID }
Declaration
Swift
public enum DatabaseUUIDEncodingStrategy
-
DatabaseColumnEncodingStrategy
specifies howEncodableRecord
types that also adopt the standardEncodable
protocol encode their coding keys into database columns.For example:
See morestruct Player: EncodableProtocol, Encodable { static let databaseColumnEncodingStrategy = DatabaseColumnEncodingStrategy.convertToSnakeCase // Encoded in the player_id column var playerID: String }
Declaration
Swift
public enum DatabaseColumnEncodingStrategy
-
DatabaseDateDecodingStrategy
specifies howFetchableRecord
types that also adopt the standardDecodable
protocol decode theirDate
properties.For example:
See morestruct Player: FetchableRecord, Decodable { static let databaseDateDecodingStrategy = DatabaseDateDecodingStrategy.timeIntervalSince1970 var name: String var registrationDate: Date // decoded from epoch timestamp }
Declaration
Swift
public enum DatabaseDateDecodingStrategy
-
DatabaseColumnDecodingStrategy
specifies howFetchableRecord
types that also adopt the standardDecodable
protocol look for the database colums that match their coding keys.For example:
See morestruct Player: FetchableRecord, Decodable { static let databaseColumnDecodingStrategy = DatabaseColumnDecodingStrategy.convertFromSnakeCase // Decoded from the player_id column var playerID: Int }
Declaration
Swift
public enum DatabaseColumnDecodingStrategy
-
An error thrown by a type that adopts
See moreMutablePersistableRecord
.Declaration
Swift
public enum PersistenceError : Error, CustomStringConvertible
-
Controls the extent of the shared database observation of
See moreSharedValueObservation
.Declaration
Swift
public enum SharedValueObservationExtent
-
A namespace for types related to the
See moreValueReducer
protocol.Declaration
Swift
public enum ValueReducers