Kitura / Kitura/SwiftKueryMySQL

allow to select db after connect

Open
#66 0 comments 0 reactions 1 assignee View on GitHub

@adam-rocska is already working on this.

Since May 19, 2026.

Dominant language
Swift
Stars
34
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.