Skip to content

Extended Module

SQLKit

Topics

Extended Classes

Extended Protocols

Extended Structures

  • SQLList
    This file provides a few extensions to SQLKit’s SQLList which 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 both FluentSQL and SQLKit were 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:) (or init(_:), taking the default value for the separator), gives the original and intended behavior (see SQLList for further details). The convenience intializer, init(items:separator:), enables the deprecated alternate behavior, which adds a space character before and after the separator.