Instance Method
serialize(to:)
Invoked when a request is made to serialize the expression to raw SQL.
func serialize(to serializer: inout SQLSerializer)
Parameters
serializerThe
SQLSerializerto use.
Discussion
Implementations of this requirement should invoke various SQLSerializer methods as appropriate to convert its contents to raw SQL form, including inspecting dialect as needed.
Important
Because this method is not throwing, an expression which encounters a serialization failure has limited options to report it. Implementations are STRONGLY discouraged from triggering a runtime error (such as via fatalError()) or from using print() to inform the user; instead, the recommended behavior for such failures is: