Zero Config
DBCode looks for database connection information (either as a connection string or configuration) in the following locations within the root folder:
- Env files (*.env): Files that contain environment variables including database connection strings.
- Web Config files (web.config): Configuration files used by web applications that may include database connection settings.
- DDev (.ddev/config.yaml): YAML files used by DDev for configurations, including database connection details.
If connection information is found and successfully parsed from these files, DBCode will automatically add it as a database connection.
DBCode also scans for compatible database files for supported databases in the root directory (currently .db file for SQLite). If such a file is found, it will be automatically added as a database connection.
Discovered Connections
Automatically discovered connections are indicated by a compass icon (ðŸ§), making it easy to identify and manage them.
The DB Explorer can also be filtered to only show connections that have been discovered automatically by using the compass icon (ðŸ§) at the top of the DB Explorer.
Additional Config Types
We recognize that there are many other types of configuration files and formats used for database connections.
Please let us know if you have specific configuration file types or formats that you need DBCode to support.