Create Database Connection
unfour.db.create_connectionCreate saved database connections for SQLite, Postgres, and MySQL; optional passwords go to the OS credential store and only a credential reference is persisted.
Instructions
Creates a saved database connection through the Unfour command bus. Optional password input is stored in the OS credential store and only a credential reference is persisted; the tool never returns the password or credential reference.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"driver": "<driver>"
},
"name": "unfour.db.create_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| name | Yes | ||
| port | No | ||
| driver | Yes | ||
| sslMode | No | ||
| database | No | ||
| password | No | ||
| readOnly | No | ||
| username | No | ||
| sqlitePath | No | ||
| workspaceId | No | ||
| credentialRef | No | ||
| credentialLabel | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||