rdsmysql: github.com/shogo82148/rdsmysql Index | Files | Directories

package rdsmysql

import "github.com/shogo82148/rdsmysql"

Package rdsmysql is a SQL driver that allows IAM Database Authentication for Amazon RDS and Amazon Aurora.

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html

Index

Package Files

connector.go rdsmysql.go

type Connector Uses

type Connector struct {
    Session           *session.Session
    Config            *mysql.Config
    MaxConnsPerSecond int
    // contains filtered or unexported fields
}

Connector is an implementation of driver.Connector

func (*Connector) Connect Uses

func (c *Connector) Connect(ctx context.Context) (driver.Conn, error)

Connect returns a connection to the database.

func (*Connector) Driver Uses

func (c *Connector) Driver() driver.Driver

Driver returns the underlying Driver of the Connector.

type Driver Uses

type Driver struct {
    Session *session.Session
}

Driver is a mysql driver using IAM DB Auth.

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html

func (*Driver) Open Uses

func (d *Driver) Open(name string) (driver.Conn, error)

Open opens new connection.

func (*Driver) OpenConnector Uses

func (d *Driver) OpenConnector(name string) (driver.Connector, error)

OpenConnector opens new connection.

Directories

PathSynopsis
internal/certificate
internal/config

Package rdsmysql imports 10 packages (graph). Updated 2019-05-17. Refresh now. Tools for package owners.