connect_database
Connect to PostgreSQL, MySQL, or SQLite databases using connection strings to establish database connections for query execution.
Instructions
Connect to a database using connection string
Input Schema
Name | Required | Description | Default |
---|---|---|---|
connectionString | Yes | The database connection string. e.g., postgresql://user:password@localhost:5432/dbname | |
dialect | Yes | The available database dialect (available: psql, mysql, sqlite) |
Input Schema (JSON Schema)
{
"properties": {
"connectionString": {
"description": "The database connection string. e.g., postgresql://user:password@localhost:5432/dbname",
"type": "string"
},
"dialect": {
"description": "The available database dialect (available: psql, mysql, sqlite)",
"enum": [
"psql",
"mysql",
"sqlite"
],
"type": "string"
}
},
"required": [
"dialect",
"connectionString"
],
"type": "object"
}