PerfectlySoft / PerfectlySoft/Perfect-MySQL

Google Cloud (MySql)

Open
#25 0 comments 0 reactions 0 assignees View on GitHub

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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.