You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Foundation
import NIO
import BriskMySQL
vareventLoopGroup:MultiThreadedEventLoopGroup=MultiThreadedEventLoopGroup(numberOfThreads:1)leteventLoop= eventLoopGroup.next()do{tryMySQLConnection.withDatabase(to:URL(string:"mysql://root:@127.0.0.1:3306/mysql")!, on: eventLoop){ conn in
conn.isConnected()}.map{ result inprint(result)}.wait()}catch{print(error.localizedDescription)}