awsrds

package
v1.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MySQLDriverName    = "aws-rds-mysql"
	PostgresDriverName = "aws-rds-postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Region          string `json:"region"`
	AccessKeyID     string `json:"access_key_id"`
	SecretAccessKey string `json:"secret_access_key"`
	Endpoint        string `json:"endpoint"`
	DbUser          string `json:"dbuser"`
	DriverName      string `json:"driver_name"`
	ConnString      string `json:"conn_string"`
}

Config holds the configuration settings to be able to authenticate to a database in the AWS RDS service.

func (*Config) FormatDSN

func (c *Config) FormatDSN() (string, error)

FormatDSN returns a DSN string based on the configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL