Skip to content
Advertisement

Is there other option to check if a table is in a SQl connection , Im trying to use dialect.has_table

Im getting this error :

AttributeError: ‘Engine’ object has no attribute ‘exec_driver_sql’

Advertisement

Answer

Nowadays the preferred method for performing such reflection is to use inspect:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement