Stav 23.06.2026
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user