Instance Method
sql(encoder:decoder:queryLogLevel:)
Return an object allowing access to this database via the
SQLDatabase interface.func sql(encoder: MySQLDataEncoder = .init(), decoder: MySQLDataDecoder = .init(), queryLogLevel: Logger.Level? = .debug) -> any SQLDatabase
Parameters
encoderA
MySQLDataEncoderused to translate bound query parameters intoMySQLDatavalues.decoderA
MySQLDataDecoderused to translateMySQLDatavalues into output values inSQLRows.
Return Value
An instance of SQLDatabase which accesses the same database as self.