Skip to content
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
11 changes: 11 additions & 0 deletions lib/odbc_adapter/adapters/snowflake_odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ def prepared_statements
def supports_migrations?
false
end

# Override the schema fetching methods for tables and views to return empty arrays as
# they make very expensive calls to Snowflake and are not needed for the adapter to
# function for our use cases.
def tables(*args)
[]
end

def views(*args)
[]
end
end
end
end