Extended Module
SQLKit
Topics
Extended Classes
Extended Protocols
Extended Structures
SQLListThis file provides a few extensions to SQLKit’sSQLListwhich have the effect of mimicking the public API which was previously provided by a nearly-identical type of the same name in this module. The slightly differing behavior of the Fluent version had a tendency to cause confusion when bothFluentSQLandSQLKitwere imported in the same context; as such, the Fluent version was removed. To avoid breaking API that has been publicly available for a long time (no matter how incorrectly so), these deprecated extensions make the semantics of the removed Fluent implementation available. Whether the original or alternate serialization behavior is used is based on which initializer is used. The original SQLKit initializer,init(_:separator:)(orinit(_:), taking the default value for the separator), gives the original and intended behavior (seeSQLListfor further details). The convenience intializer,init(items:separator:), enables the deprecated alternate behavior, which adds a space character before and after the separator.