table/schema/owner component formatter for ANSIIdentifierPreparer

Issue #666 resolved
jek created an issue

From #482:

... passing the full table in to has_table() still does not eliminate the complexity that some dialects need to query the schema name and tablename as separate columns, so the format_table() method is not flexible enough. a new method "foramt_schema_and_tablename" or similar should be added to ANSIIdentifierPreparer which returns the two names separately, and is called by the generic create/drop methods in ansisql.py to get the quoted names, which then get passed to has_table ...

This new method could return formatted identifiers for the whole path to a table (#594) as a list, and the dialect can '.'.join() them or use them piecemeal as needed.

Comments (2)

  1. Log in to comment