Spaces:
Build error

adad / runtime /Lib /site-packages /adodbapi /schema_table.py
jam134's picture
Upload 69 files
804a52f verified
Raw History Blame Contribute Delete
436 Bytes
"""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