list_tables_handler

Function list_tables_handler 

Source
pub async fn list_tables_handler<DB: DatabaseProvider>(
    __arg0: State<Arc<DB>>,
) -> Response
Expand description

Handler for GET /api/tables

Returns a list of all tables in the database with row counts.

§Arguments

  • database - Database provider from state

§Returns

JSON response containing list of tables