datasource view
Synopsis¶
Tip
You can also use global options with this command.
Description¶
Print the full datasource configuration as stored in data-sources.json.
The output is returned in JSON format and reflects the exact state of the datasource in the active workspace.
Required argument¶
Specify the datasource ID or name. The value must match an existing datasource in the active workspace.
Tip
Run datasource list and use the value from the ID column.
Options¶
--project¶
View the datasource from the specified project. Use this option if multiple projects exist and the datasource ID is not unique across them.
Tip
Run project list to see available projects.
Example¶
Sample output:
{
"provider": "mysql-ee",
"driver": "mysql8",
"name": "MySQL - localhost",
"save-password": true,
"folder": "MySQL",
"configuration": {
"host": "localhost",
"port": "3306",
"url": "jdbc:mysql://localhost:3306/",
"configurationType": "MANUAL",
"home": "mysql_client",
"type": "dev",
"closeIdleConnection": false,
"config-profile": "db1",
"auth-model": "native"
}
}