Documentation
¶
Overview ¶
Package dbtprofiles parses dbt profiles.yml files into yamlconfig.Connection or agentdwhv1.Connection types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConnections ¶
func LoadConnections(path string) (map[string]*yamlconfig.Connection, error)
LoadConnections parses a dbt profiles.yml and returns YAML connections. Each profile/target pair becomes a connection. Connection names use the format "profile" (default target) or "profile/target".
func LoadProtoConnections ¶
func LoadProtoConnections(path string) (map[string]*agentdwhv1.Connection, error)
LoadProtoConnections parses a dbt profiles.yml and returns proto Connection messages.
func ResolveProfilesPath ¶
func ResolveProfilesPath() string
ResolveProfilesPath returns the path to the dbt profiles.yml file, following dbt's standard search order:
- $DBT_PROFILES_DIR/profiles.yml
- ./profiles.yml (current working directory)
- ~/.dbt/profiles.yml
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.