Skip to content

datasource

datasource - manage database connections in dbvr.

Synopsis

dbvr datasource [-hV] [COMMAND]

Tip

You can also use global options with this command.

Description

Manage connection definitions stored in the current workspace.

A datasource is a database connection configuration persisted in data-sources.json. It defines how dbvr connects to a database - driver, host, port, credentials, authentication model, and optional network settings such as SSH or proxy.

Datasources let you:

  • reuse connection settings across commands like sql
  • separate connections by project, for example production, staging, or development
  • maintain multiple configurations for the same database

You can create, update, view, list, or delete datasources from the command line.

Commands

  • create

    Create a new datasource and store it in the workspace configuration.

  • update

    Update properties of an existing datasource.

  • delete

    Delete a datasource from the workspace.

  • list

    List all datasources available in the current workspace.

  • view

    View full datasource configuration in JSON format.