pub async fn list_tables(conn: &mut Conn, db_name: &str) -> Result<Vec<String>>Expand description
List all user tables in a MySQL database
Queries INFORMATION_SCHEMA to discover all user tables, excluding system tables. Returns tables in alphabetical order.
§Arguments
conn- MySQL connectiondb_name- Database name to list tables from
§Returns
Vector of table names
§Examples
let mut conn = connect_mysql("mysql://localhost:3306/mydb").await?;
let tables = list_tables(&mut conn, "mydb").await?;
println!("Found {} tables", tables.len());