Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vertica_python.py with DefaultDialect get_multi* functions #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions sqla_vertica_python/vertica_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,43 @@ def get_check_constraints(self, connection, table_name, schema=None, **kw):
} for name, src in connection.execute(text(query)).fetchall()
]

#@reflection.cache
def get_multi_columns(self, connection, **kw):
return super(PGDialect, self).get_multi_columns(connection, **kw)

#@reflection.cache
def get_multi_table_comment(self, connection, **kw):
return super(PGDialect, self).get_multi_table_comment(connection, **kw)

#@reflection.cache
def get_multi_pk_constraint(self, connection, **kw):
return super(PGDialect, self).get_multi_pk_constraint(connection, **kw)

#@reflection.cache
def get_multi_foreign_keys(self, connection, **kw):
return super(PGDialect, self).get_multi_foreign_keys(connection, **kw)

#@reflection.cache
def get_multi_indexes(self, connection, **kw):
return super(PGDialect, self).get_multi_indexes(connection, **kw)

#@reflection.cache
def get_multi_unique_constraints(self, connection, **kw):
return super(PGDialect, self).get_multi_unique_constraints(connection, **kw)

#@reflection.cache
def get_multi_check_constraints(self, connection, **kw):
return super(PGDialect, self).get_multi_check_constraints(connection, **kw)

#@reflection.cache
def get_multi_table_options(self, connection, **kw):
return super(PGDialect, self).get_multi_table_options(connection, **kw)

@reflection.cache
def get_temp_table_names(self, connection, **kw):
#temp tables not supported
return []

# constraints are enforced on selects, but returning nothing for these
# methods allows table introspection to work

Expand Down