Skip to main content

table_names

Function table_names 

Source
pub async fn table_names() -> Result<Vec<String>, AppError>
Expand description

Every real table in the connected database, alphabetical - the one portable piece of schema introspection this crate needs (sqlx::Any has no catalog API of its own; see larust-db’s own sql::introspect module for the fuller browse/edit-oriented introspection built on top of this same query). SQLite’s internal sqlite_% tables are excluded; MySQL/Postgres’s information_schema.tables query is already scoped to just the connected database/schema, so nothing internal leaks through.

This includes _migrations itself - correct for crate::migrate::fresh, which wants that table dropped and recreated along with everything else.