Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/adodbapi/schema_table.py

15 lines
418 B
Python
Raw Normal View History

2020-11-12 16:05:57 +00:00
"""call using an open ADO connection --> list of table names"""
from . import adodbapi
def names(connection_object):
ado = connection_object.adoConn
schema = ado.OpenSchema(20) # constant = adSchemaTables
tables = []
while not schema.EOF:
name = adodbapi.getIndexedValue(schema.Fields,'TABLE_NAME').Value
tables.append(name)
schema.MoveNext()
del schema
return tables