Skip to main content

get_table_schema

Function get_table_schema 

Source
pub async fn get_table_schema(
    schema_fn: impl Future<Output = Result<impl Serialize, AppError>>,
    database_name: &str,
    table_name: &str,
) -> Result<String, ErrorData>
Expand description

Executes a get_table_schema tool call.

ยงErrors

Returns ErrorData if the backend query or JSON serialization fails.