Skip to main content

sql_table_comment

Function sql_table_comment 

Source
pub fn sql_table_comment<C: SqlConnection>(
    conn: &C,
    table_name: &str,
    schema: Option<&str>,
) -> Result<Option<String>, IoError>
Expand description

Probe the table-level comment for a SQL table, optionally schema-scoped.

Matches SQLAlchemy.Inspector.get_table_comment() shape — returns Ok(Some(text)) when a comment exists, Ok(None) otherwise. SQLite has no native table-comment storage and returns None. PostgreSQL/MySQL/MSSQL impls override with their respective catalog queries.

Per br-frankenpandas-yu3w (fd90.32).