get_columns
Retrieve a list of columns from a specified table in SQL databases (Postgres, MySQL, SQLite). Input includes database type, connection string, and table name for precise results.
Instructions
Get list of column in a table
Input Schema
Name | Required | Description | Default |
---|---|---|---|
connection_string | Yes | ||
db_type | Yes | ||
table_name | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"connection_string": {
"type": "string"
},
"db_type": {
"enum": [
"postgres",
"mysql",
"sqlite"
],
"type": "string"
},
"table_name": {
"type": "string"
}
},
"required": [
"db_type",
"connection_string",
"table_name"
],
"type": "object"
}