@raise_if_offline
def schema_has_table(table_name):
 bind = op.get_bind()
 insp = sa.engine.reflection.Inspector.from_engine(bind)
 return (table_name in insp.get_table_names())

@ raise_if_offline def schema_has_table ( table_name ) : bind = op . get_bind ( ) insp = sa . engine . reflection . Inspector . from_engine ( bind ) return ( table_name in insp . get_table_names ( ) )
check whether the specified table exists in the current schema .