All Versions
90
Latest Version
Avg Release Cycle
30 days
Latest Release
22 days ago

Changelog History
Page 1

  • v5.38.0

    November 01, 2020
    • โœ… Do not add new Database instances to Sequel::DATABASES if the test connection fails (jeremyevans) (#1727)

    • ๐Ÿ‘Œ Support the newer com.mysql.cj.jdbc.Driver in the jdbc/mysql adapter (jeremyevans)

    • Do not swallow disconnect errors in Database#create_or_replace_view or Database#create_table* on Oracle (jeremyevans)

    • ๐Ÿ‘€ Only rescue non-disconnect Sequel::DatabaseErrors in Postgres::Database#server_version (jeremyevans) (#1724)

    • Make the single_table_inheritance and prepared_statements plugins work if loaded into the same class (jeremyevans) (#1721)

  • v5.37.0

    October 01, 2020
    • Recognize more unsigned decimal/float types in the schema dumper (akimd, jeremyevans) (#1720)

    • Add Postgres::PGRow::{Array,Hash}Row#op to the pg_row_ops extension if the pg_row extension is loaded (jeremyevans)

    • Add Model#column_previously_was and #column_previously_changed? to the dirty plugin (jeremyevans)

    • Raise Migrator::Error if attempting to migrate down to a version where there are necessary migration files missing (jeremyevans) (#1716)

  • v5.36.0

    September 01, 2020
    • Handle passing keyword arguments through class methods defined via Plugins.def_dataset_method on Ruby 2.7+ (jeremyevans)

    • ๐Ÿ”Œ Handle passing keyword arguments through when loading plugins on Ruby 2.7+ (jeremyevans)

    • ๐Ÿ’Ž Handle passing keyword arguments through migrations when defining custom Database methods that accept keywords on Ruby 2.7+ (jeremyevans)

    • ๐Ÿ’Ž Handle passing keyword arguments through Dataset#query when using the query extension on Ruby 2.7+ (jeremyevans)

    • ๐Ÿ”Œ Handle passing keyword arguments through the association proxy when using the association_proxies plugin on Ruby 2.7+ (jeremyevans)

    • ๐Ÿ’Ž Handle passing keyword arguments through the class method to a method defined in dataset_module on Ruby 2.7+ (adam12) (#1713)

    • ๐ŸŽ Stream result sets in the odbc adapter for better performance and lower memory usage (sparrovv) (#1711)

    • Add Postgres::JSONBOp#set_lax and #path_*_tz methods to the pg_json_ops extension for new jsonb functions added in PostgreSQL 13 (jeremyevans)

    • โž• Add Dataset#with_ties on PostgreSQL 13+ and Microsoft SQL Server to include rows with same order as final row (jeremyevans)

    • Add a :current_schema option to Database#view_exists? (only defined on Oracle) to look in the current schema instead of non-system schemas (jeremyevans) (#1710)

    • Recognize another disconnect error in the mysql and mysql2 adapters (jeremyevans) (#1706)

  • v5.35.0

    August 01, 2020
    • Recognize another disconnect error in the oracle adapter (sterlzbd) (#1705)

    • Consider all associations with :dataset options as instance-specific associations (jeremyevans)

    • ๐Ÿ‘‰ Make Model.finalize_associations not break with instance-specific associations (jeremyevans)

    • ๐Ÿ‘‰ Make association placeholder loader consider block if instance_specific: false association option is used (jeremyevans)

    • Copy composite unique constraints when emulating alter table operations on SQLite (jeremyevans) (#1704)

    • Add instance_specific_default plugin for setting default association :instance_specific value, or warning/raising for cases where it is not specified (jeremyevans)

    • ๐Ÿ—„ Make Model.plugin issue deprecation warning if loading plugin with arguments and block if plugin does not accept arguments/block (jeremyevans)

    • Make validation_class_methods consider all :if, :allow_missing, :allow_nil, and :allow_blank settings, instead of just the first (jeremyevans)

    • Include hash entries with nil keys in Dataset#to_dot output in to_dot extension (jeremyevans)

    • โœ‚ Remove unneeded conditionals from plugins and extensions (jeremyevans)

    • Fix exception class in run_transaction_hooks extension if calling run_after_{commit,rollback}_hooks outside of a transaction (jeremyevans)

  • v5.34.0

    July 01, 2020
    • ๐Ÿ‘‰ Make eager_graph work correctly if called with no associations (jeremyevans)

    • ๐Ÿ’Ž Make :ruby eager limit strategy handle cases where there is no limit or offset (jeremyevans)

    • ๐Ÿ‘ป Do not keep a reference to a Sequel::Database instance that raises an exception during initialization (jeremyevans)

    • ๐Ÿ‘‰ Make Database#pool.all_connections not yield for a single connection pool in disconnected state (jeremyevans)

    • ๐Ÿ‘ป Raise an exception if trying to disconnect a server that doesn't exist in the sharded connection pools (jeremyevans)

    • Support :refresh option when calling *_pks getter method in the association_pks plugin (jeremyevans)

    • Support caching of repeated calls to *_pks getter method in the association_pks plugin using :cache_pks association option (jeremyevans)

    • Add *_pks_dataset methods for one_to_many and many_to_many associations when using the association_pks plugin (jeremyevans)

  • v5.33.0

    June 01, 2020
    • Support custom join types on a per-association basis when using eager_graph/association_join (jeremyevans)

    • ๐Ÿ‘Œ Support primary_key with type: :smallserial on PostgreSQL (j-a-m-l) (#1698)

    • Add Database#current_timestamp_utc accessor on SQLite to keep CURRENT_* in UTC instead of converting to localtime (jeremyevans)

  • v5.32.0

    May 01, 2020
    • Allow Database#create_table? work with :partition_of option on PostgreSQL (jeremyevans) (#1690)

    • โž• Add fiber_concurrency extension, for using Fiber.current instead of Thread.current for checking out connections (jeremyevans)

    • ๐Ÿšš Move most Sequel singleton methods into a module that extends Sequel for easier overriding (jeremyevans)

    • ๐Ÿ›  Fix method visibility issues in model, plugin, extension, and adapter code (jeremyevans)

    • Avoid defining conversion procs for PostgreSQL inet/cidr types in pg_inet extension when using sequel_pg 1.13.0+ (jeremyevans)

    • Add run_transaction_hooks Database extension, allowing for running the transaction hooks before commit/rollback, for use with transactional testing (jeremyevans)

    • Recognize timestamp(N) with time zone type (isc) (#1684)

  • v5.31.0

    April 01, 2020
    • Fix alter_table drop_constraint :primary_key option on SQLite for non-integer primary keys (jeremyevans)

    • Add skip_saving_columns plugin, which supports columns to skip when saving, and skips generated columns by default (joeosburn, jeremyevans) (#1681, #1682)

    • Add support for creating partitioned tables in PostgreSQL 10+ using :partition_by and :partition_of options (jeremyevans)

    • Dump generated columns as generated columns when using the schema_dumper with :same_db option on PostgreSQL 12+ (jeremyevans) (#1680)

    • 0๏ธโƒฃ Ignore defaults for generated columns by default when using the schema dumper (jeremyevans) (#1680)

    • Include generated columns in schema on SQLite 3.31+ (jeremyevans)

    • โž• Add :generated schema entry on PostgreSQL 12+ and SQLite 3.31+ for whether the columns is generated (jeremyevans)

    • Add association_lazy_eager_option plugin for supporting :eager option for association method (jeremyevans)

    • Add forbid_lazy_load plugin for forbidding lazy loading of associations, to help find N+1 issues (jeremyevans)

  • v5.30.0

    March 01, 2020
    • โœ‚ Remove specs and old release notes from the gem to reduce gem size by over 40% (jeremyevans)

    • When using Database#transaction :retry_on, call :before_retry option if retrying even if :num_retries is nil (jcmfernandes) (#1678)

    • Support generated columns on SQLite 3.31+ using :generated_always_as and :generated_type options (jeremyevans)

  • v5.29.0

    February 01, 2020
    • Recognize another disconnect error in the tinytds adapter (jeremyevans)

    • ๐Ÿ›  Fix verbose warning in postgres adapter when using prepared statements and recent versions of ruby-pg (jeremyevans)

    • ๐Ÿ’Ž Work correctly on Ruby 2.8+ by supporting second argument for initialize_clone (jeremyevans)

    • Add empty_failure_backtraces plugin for empty backtraces for ValidationFailed and HookFailed exceptions, much faster on JRuby (jeremyevans)

    • Add Dataset#json_serializer_opts to json_serializer plugin, allowing to set json_serializer options on a per-dataset basis (jeremyevans)