get_table_schema_handler

Function get_table_schema_handler 

Source
pub async fn get_table_schema_handler<DB: DatabaseProvider>(
    __arg0: State<Arc<DB>>,
    __arg1: Path<String>,
) -> Response
Expand description

Handler for GET /api/tables/:name

Returns the schema information for a specific table including columns, primary keys, foreign keys, and indexes.

§Arguments

  • database - Database provider from state
  • table_name - Name of the table to get schema for

§Returns

JSON response containing table schema information