database-mcp-postgres 0.7.0

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 `dropTable` tool.
#[derive(Debug, Default, Deserialize, JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct DropTableRequest {
    /// The database containing the table. Required. Use `listDatabases` first to see available databases.
    pub database: String,
    /// Name of the table to drop. Must contain only alphanumeric characters and underscores.
    pub table: String,
    /// If true, use CASCADE to also drop dependent foreign key constraints. Defaults to false.
    #[serde(default)]
    pub cascade: bool,
}