Extensions
-
Declaration
Swift
extension Application
-
Declaration
Swift
extension Array where Element: Model
-
Declaration
Swift
extension CharacterSet
-
Declaration
Swift
extension Collection where Element: ImportableFormatter
-
Declaration
Swift
extension Comparable
-
Declaration
Swift
extension Data
-
Declaration
Swift
extension Date
-
Defines a formatter that can be used on both, import & export, conversions
Declaration
Swift
private typealias Formatter = ImportableFormatter & ExportableFormatter
-
Declaration
Swift
extension ISO8601DateFormatter
-
Declaration
Swift
extension Model where IDValue: LosslessStringConvertible
-
Declaration
Swift
extension PathComponent
-
Declaration
Swift
extension QueryBuilder
-
This extends Request.Redis with a bunch of function wrappers that (mostly) make a single Redis call. The function names describe what the functions do in Swiftarr API terms, keeping the Redis keys and specific commands used internal to this file. When looking at the Redis database you can refer to this file to see what various keys are used for, and having all the Redis code here makes it much easier to reason about changes to how we structure data in Redis.
Unlike Postgres with Fluent, Redis doesn’t provide us with a centralized data model for how the db is structured. Having code all over the app call hset directly makes it difficult to answer questions like, “What fields should exist in this hash set?” So, all that is centralized here.
See moreDeclaration
Swift
extension RedisClient
-
Declaration
Swift
extension Request
-
Declaration
Swift
extension SiblingsProperty
-
Declaration
Swift
extension String
-
Declaration
Swift
extension Substring