PerfectlySoft / PerfectlySoft/Perfect-MySQL
Google Cloud (MySql)
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 126
- Forks
- 58
- Avg merge
- 25m
- Merged PRs (30d)
- 1
Description
how can I use MySQLDatabaseConfiguration to connect to a Google Cloud that requesting certificates?
I used it to connect to a local database, but I don't understand how I can connect to a Google remote databases that required the certificates?
I already have the certificates but I don't understand how to configure connection with Perfect to use them.
below the standard example without certificates:
do {
let config = try MySQLDatabaseConfiguration(database: "MYDB", host: "localhost", port: 3306, username: "root", password: "root123")
let db = Database(configuration: config)
let tblUser = db.table(User.self)
let query = try? tblUser.select()
print(query)
} catch {
print(error)
}
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with MySQLDatabaseConfiguration in the Perfect-MySQL project and compare its documented connection options with Google Cloud MySQL's certificate requirements. Determine whether certificate-based connections are supported, then document the required configuration or clarify the missing capability and its expected usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- gcp, mysql, swift
- Domain
- cloud, databases
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100