remove unused function

pull/35/head
Takayuki Maeda 3 years ago
parent 834462b3dd
commit fff9b1aa02

@ -31,7 +31,7 @@ impl Pool for MySqlPool {
for db in databases {
list.push(Database::new(
db.clone(),
get_tables(db.clone(), &self.pool)
self.get_tables(db.clone())
.await?
.into_iter()
.map(|table| table.into())
@ -124,14 +124,6 @@ impl Pool for MySqlPool {
}
}
pub async fn get_tables(database: String, pool: &MPool) -> anyhow::Result<Vec<Table>> {
let tables =
sqlx::query_as::<_, Table>(format!("SHOW TABLE STATUS FROM `{}`", database).as_str())
.fetch_all(pool)
.await?;
Ok(tables)
}
fn convert_column_value_to_string(row: &MySqlRow, column: &MySqlColumn) -> anyhow::Result<String> {
let column_name = column.name();
match column.type_info().clone().name() {

Loading…
Cancel
Save