Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgres/gcppostgres: add support for AlloyDB #3241

Open
jinlinux opened this issue Apr 5, 2023 · 3 comments
Open

postgres/gcppostgres: add support for AlloyDB #3241

jinlinux opened this issue Apr 5, 2023 · 3 comments

Comments

@jinlinux
Copy link

jinlinux commented Apr 5, 2023

Are there plans to add support for connecting to the Postgres compatible AlloyDB in GCP?

@vangent
Copy link
Contributor

vangent commented Apr 5, 2023

No concrete plans, no. Happy to take pull requests. What does a sample sql.OpenDB look like?

@jinlinux
Copy link
Author

jinlinux commented Apr 5, 2023

In their go connector example shows something like this.

    db, err := sql.Open(
        "alloydb",
        "host=projects/<PROJECT>/locations/<REGION>/clusters/<CLUSTER>/instances/<INSTANCE> user=myuser password=mypass dbname=mydb sslmode=disable",
	)

@vangent
Copy link
Contributor

vangent commented Apr 6, 2023

Happy to take a PR on this. I think you should be able to start with https://github.com/google/go-cloud/blob/master/postgres/gcppostgres/gcppostgres.go and modify it for the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants