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 To Support Sequel 4.49+ #19

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

emschwar
Copy link
Contributor

This PR updates sequel-vertica to be compliant with recent Sequel versions as of 4.49.

  • As of Sequel 4.49 (starting probably somewhat earlier in the 4.x series),
    adapters appear to be expected to populate the columns cache (by setting
    self.columns) in the Dataset's fetch_rows() method. This change conforms
    to that expectation, and also removes the sequel-vertica adapter's own
    cache of column attributes.
  • Using __ (double underscores) to separate schemas and tables (and columns)
    is deprecated; use Sequel[] instead.
  • log_yield is deprecated in favor of log_connection_yield
  • We should now use the #dataset_class_default method to define which class to
    use for a dataset, instead of relying on the framework to call const_get("Dataset") for us.
  • A number of constants in Sequel::Dataset are now deprecated, and have been replaced
    with their previous values.
  • Sequel.cache_anonymous_models has been moved to Sequel::Model

@emschwar emschwar changed the title Populate columns cache as a side effect of fetch_rows() Update To Support Sequel 4.49+ Sep 12, 2018
Camilo Lopez and others added 4 commits October 24, 2023 12:21
* Support COPY FROM STDIN ... with #copy_into (based on the Sequel postgres
  adapter)
* Required updating vertica to 1.0 for best support with the driver' #copy
  method.
* New driver returns Vertica::Row objects, which required an update to
  #fetch_rows in order to convert them back to symbol-keyed Hashes.
* New driver does not support :schema as a connection option, so removed it.
* Added Dataset#complex_expression_sql_append to convert operators ~ and ~*
  to use REGEXP_LIKE with options
As of Sequel 4.49 (starting probably somewhat earlier in the 4.x series),
adapters appear to be expected to populate the columns cache (by setting
self.columns) in the Dataset's fetch_rows() method.  This change conforms
to that expectation, and also removes the sequel-vertica adapter's own
cache of column attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant