bug fix: meta/sql.py

This commit is contained in:
Steve Nyemba 2022-06-12 21:14:46 -05:00
parent 9805264f87
commit d7c9e41095
1 changed files with 2 additions and 1 deletions

View File

@ -101,9 +101,10 @@ class SQLRW :
if self._engine :
table = _args['table'] if 'table' in _args else self.table
_m = sqlalchemy.MetaData(bind=self._engine)
_m.reflect()
schema = [{"name":_attr.name,"type":str(_attr.type)} for _attr in _m.tables[table].columns]
except Exception as e:
e
pass
return schema
def _tablename(self,name) :