Connections
Manage Connections
Connections
Environment
dbNet looks for connection credentials in several places:
Environment Variables
DBT Profiles Files (located at
~/.dbt/profiles.yml
)
The easiest ways is to see your detected connections is to use the dbnet conns
sub-command. Follow in the next section.
Managing Connections
dbNet makes it easy to list and test connections.
Set Connections
Here we can easily set a connection with as a environment variable. For example, for a postgres database, we can do:
See the respective documentation for your database of interest (links above).
List Connections
Once connections are set, we can run the dbnet conns list
command to list our detected connections:
Test Connections
We can also test a connection by running the dbnet conns test
command:
Last updated