database-mcp-postgres 0.6.3

PostgreSQL for database-mcp
Documentation
//! PostgreSQL-specific MCP tool request types.
//!
//! These types include PostgreSQL-only parameters like `cascade`
//! that are not available on other backends.

use rmcp::schemars;
use rmcp::schemars::JsonSchema;
use serde::Deserialize;

/// Request for the `drop_table` tool.
#[derive(Debug, Default, Deserialize, JsonSchema)]
pub struct DropTableRequest {
    /// The database containing the table. Required. Use `list_databases` first to see available databases.
    pub database_name: String,
    /// Name of the table to drop. Must contain only alphanumeric characters and underscores.
    pub table_name: String,
    /// If true, use CASCADE to also drop dependent foreign key constraints. Defaults to false.
    #[serde(default)]
    pub cascade: bool,
}