newDriver will create a new *AwsIamRdsDriver using the environment aws session.
(parentDriver driver.Driver, cfg aws.Config)
| 48 | |
| 49 | // newDriver will create a new *AwsIamRdsDriver using the environment aws session. |
| 50 | func newDriver(parentDriver driver.Driver, cfg aws.Config) *awsIamRdsDriver { |
| 51 | return &awsIamRdsDriver{ |
| 52 | parent: parentDriver, |
| 53 | cfg: cfg, |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // Open creates a new connection to the database using the provided name. |
| 58 | func (d *awsIamRdsDriver) Open(name string) (driver.Conn, error) { |