Instance Method
sql(encoder:decoder:queryLogLevel:)
Return an object allowing access to this database via the
SQLDatabase interface.func sql(encoder: SQLiteDataEncoder, decoder: SQLiteDataDecoder, queryLogLevel: Logger.Level?) -> any SQLDatabase
Parameters
encoderAn
SQLiteDataEncoderused to translate bound query parameters intoSQLiteDatavalues.decoderAn
SQLiteDataDecoderused to translateSQLiteDatavalues into output values inSQLRows.queryLogLevelThe level at which SQL queries issued through the SQLKit interface will be logged.
Return Value
An instance of SQLDatabase which accesses the same database as self.