AIM-PIbd-32-Kurbanova-A-A/aimenv/Lib/site-packages/adodbapi/schema_table.py
2024-10-02 22:15:59 +04:00

16 lines
421 B
Python

"""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