connect_database
Connect to a SQLite or PostgreSQL database using a connection URI or file path to start exploring and querying data.
Instructions
Connect to a SQLite or PostgreSQL database. For SQLite, connection_string can be a file path (e.g. 'dev.db') or ':memory:'. For Postgres, connection_string must be a valid PostgreSQL connection URI. Resolves relative paths for SQLite databases against the current working directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_type | Yes | The type of database engine. | |
| connection_string | Yes | Connection URI or file path to connect to. |