Skip to content

tailor-platform/alloydb-connector-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alloydbconn

A Rust connector for Google Cloud AlloyDB. Provides secure, authenticated connections to AlloyDB instances using IAM authentication and automatic certificate management.

Features

  • Automatic TLS certificate management with background refresh
  • IAM-based authentication
  • Connection pooling via deadpool
  • Support for both public and private IP connections

Usage

use alloydbconn::{AlloyDbConfig, AlloyDbConnector};

let config = AlloyDbConfig::new("projects/my-project/locations/us-central1/clusters/my-cluster/instances/my-instance")
    .with_iam_auth(true);

let connector = AlloyDbConnector::new(config).await?;
let pool = connector.create_pool("my_database", "my_user", None)?;
let conn = pool.get().await?;

License

MIT

About

AlloyDB connector for Rust

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages