tables
Manage PostgreSQL database tables by listing, creating, altering, dropping tables, and retrieving detailed table information through structured operations.
Instructions
Table management: list, create, alter, drop tables and get detailed table information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Action: list (all tables), info (table details), create (new table), drop (remove table), add_column (add column), drop_column (remove column), rename (rename table) | |
columnName | No | Column name (required for add_column, drop_column) | |
columns | No | Column definitions for create action | |
dataType | No | Data type (required for add_column) | |
newName | No | New name (required for rename action) | |
options | No | Action-specific options | |
schemaName | No | Schema name (default: public) | public |
tableName | No | Table name (required for info, create, drop, add_column, drop_column, rename) |