SwiftKueryMySQL
SwiftKueryMySQL copied to clipboard
allow to select db after connect
Hi,
I need to list the available databases and choose the database in a second step.
I tried to do a USE mydb; but it does not work, I think you should use this method mysql_select_db to achieve it, you can confirmed?
The operation couldn’t be completed. (SwiftKuery.QueryError error 2.)
self.client.execute("USE `\(database)`;") { (queryResult) in
print(queryResult)
}
see: https://dev.mysql.com/doc/refman/8.0/en/mysql-select-db.html
Thx