SwiftKueryMySQL icon indicating copy to clipboard operation
SwiftKueryMySQL copied to clipboard

allow to select db after connect

Open euskadi31 opened this issue 5 years ago • 0 comments

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

euskadi31 avatar Mar 23 '20 01:03 euskadi31