Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { User string `envconfig:"ORACLE_USER"` Pw string `envconfig:"ORACLE_PW"` Host string `envconfig:"ORACLE_HOST_NAME"` Port int `envconfig:"ORACLE_PORT"` DBName string `envconfig:"ORACLE_DB_NAME"` ConnectString string `envconfig:"ORACLE_CONNECT_STRING"` }
Config holds everything you need to connect and interact with an Oracle DB.
func LoadConfigFromEnv ¶
func LoadConfigFromEnv() Config
LoadConfigFromEnv will attempt to load an OracleCreds object from environment variables.
Click to show internal directories.
Click to hide internal directories.