Closed florianreinhart closed 6 years ago
I have implemented experimental codes into mysql-swift. (88d2f5c5a8e9604fdc4d5998610e0f94f03d74c6)
But it will case error multiple matching functions named...
when structs have both Codable
and QueryParameter
protocols. And it will be avoided by this fix 9514552af251f3265f82f1fd3fbc6fb40744a1a8.
Thanks @novi! LGTM, though I haven't tested the new code 😉
Released 0.9.0 and will close the ticket.
It would be nice to use
enum
s,OptionSet
s and otherRawRepresentable
types directly as query parameters.This could make use of conditional conformance introduced in Swift 4.1. The following code will not compile and complain that an extension for a protocol cannot have an inheritance clause:
Extension of protocol 'RawRepresentable' cannot have an inheritance clause
. However, it should explain my idea. I guess mysql-swift needs some special internal handling ofRawRepresentable
s to make this work.