All Versions
101
Latest Version
Avg Release Cycle
30 days
Latest Release
15 days ago

Changelog History
Page 9

  • v4.19.0 Changes

    February 01, 2015
    • ๐Ÿ‘‰ Make jdbc/sqlanywhere correctly set :auto_increment entry in schema hashes (jeremyevans)

    • โž• Add Model#cancel_action for canceling actions in before hooks, instead of having the hooks return false (jeremyevans)

    • ๐Ÿ‘Œ Support not setting @@wait_timeout on MySQL via :timeout=>nil Database option (jeremyevans)

    • โž• Add accessed_columns plugin, recording which columns have been accessed for a model instance (jeremyevans)

    • Use correct migration version when using IntegerMigrator with :allow_missing_migration_files (blerins) (#938)

    • ๐Ÿ‘‰ Make Dataset#union, #intersect, and #except automatically handle datasets with raw SQL (jeremyevans) (#934)

    • โž• Add column_conflicts plugin to automatically handle columns that conflict with method names (jeremyevans) (#929)

    • Add Model#get_column_value and #set_column_value to get/set column values (jeremyevans) (#929)

  • v4.18.0 Changes

    January 02, 2015
    • ๐Ÿ‘‰ Make Dataset#empty? work when the dataset is ordered by a non-column expression (pete) (#923)

    • ๐Ÿ›  Fix passing a hash value to :eager association option (jeremyevans)

    • Treat all PG::ConnectionBad exceptions as disconnect errors in the postgres adapter (jeremyevans)

    • โž• Add :auto_increment key to schema information for primary key columns (jeremyevans) (#919)

    • Fix handling of schema qualified tables in many_through_many associations (jeremyevans)

  • v4.17.0 Changes

    December 01, 2014
    • ๐Ÿ›  Fix handling of Sequel::SQL::Blob instances in bound variables in the postgres adapter (jeremyevans) (#917)

    • โž• Add :preconnect Database option for immediately creating the maximum number of connections (jeremyevans)

    • ๐Ÿ‘Œ Support DB.pool.max_size for the single connection pools (jeremyevans)

    • โ†ช Work around regression in jdbc-sqlite3 3.8.7 where empty blobs are returned as nil (jeremyevans)

    • โ†ช Work around regression in jdbc-sqlite3 3.8.7 when using JDBC getDate method for date parsing (jeremyevans)

    • Make Model#update_or_create return object if existing object exists but updates are not necessary (contentfree) (#916)

    • โž• Add Dataset#server? for conditionally setting a default server to use if no default is present (jeremyevans)

    • โž• Add Database#sharded? for determining if database uses sharding (jeremyevans)

    • ๐Ÿ›  Fix server used by Dataset#insert_select on PostgreSQL (jeremyevans)

    • ๐Ÿ›  Fix server used for deleting model instances when using sharding (jeremyevans)

  • v4.16.0 Changes

    November 01, 2014
    • Make Database#create_table? and #create_join_table? not use IF NOT EXISTS if indexes are being added (jeremyevans) (#904)

    • Dataset#distinct now accepts virtual row blocks (chanks) (#901)

    • Recognize disconnect errors in the postgres adapter when SSL is used (jeremyevans) (#900)

    • 0๏ธโƒฃ Stop converting '' default values to nil default values on MySQL (jeremyevans)

    • Add Model#qualified_pk_hash, for returning a hash with qualified pk keys (jeremyevans)

    • ๐Ÿ‘‰ Make validates_unique use a qualified primary key if the dataset is joined (jeremyevans) (#895)

    • ๐Ÿ‘‰ Make Sequel::Model.cache_associations = false skip the database's schema cache when loading the schema (jeremyevans)

    • Make Database#foreign_key_list work on Microsoft SQL Server 2005 (jeremyevans)

    • ๐Ÿ‘‰ Make create_table with :foreign option reversible on PostgreSQL (jeremyevans)

    • ๐Ÿ‘‰ Make drop_table with :foreign option on PostgreSQL drop a foreign table (johnnyt) (#892)

  • v4.15.0 Changes

    October 01, 2014
    • ๐Ÿšฉ Make AssociationReflection#reciprocal not raise error if associated class contains association with invalid associated class (jeremyevans)

    • Make create_view(:view_name, dataset, :materialized=>true) reversible on PostgreSQL (jeremyevans)

    • โž• Add support for creating foreign tables on PostgreSQL using :foreign and :options create_table options (jeremyevans)

    • ๐Ÿšฉ Raise Error if a primary key is necessary to use an association, but the model doesn't have a primary key (jeremyevans)

    • Make tactical_eager_loading plugin work for limited associations (jeremyevans)

    • โž• Add PlaceholderLiteralizer#with_dataset, for returning a new literalizer using a modified dataset (jeremyevans)

    • Support active_model 4.2.0beta1 in the active_model plugin (jeremyevans)

    • ๐Ÿ‘‰ Make Dataset#insert in the informix adapter return last inserted id (jihwans) (#887)

    • ๐Ÿ‘Œ Support :nolog option in the informix adapter to disable transactions (jihwans) (#887)

    • Remove optional argument for Postgres::{JSON,JSONB}Op#to_record and #to_recordset (jeremyevans)

    • โž• Add support for FoundationDB SQL Layer, via fdbsql and jdbc/fdbsql adapters (ScottDugas, jeremyevans) (#884)

    • โ†ช Work around bug in old versions of MySQL when schema dumping a table with multiple timestamp columns (jeremyevans) (#882)

    • ๐Ÿ‘Œ Support more array types by default in the pg_array extension, such as xml[] and uuid[] (jeremyevans)

    • โž• Add Sequel::Model.cache_associations accessor, which can be set to false to not cache association metadata (jeremyevans)

    • โž• Add split_values plugin, for moving noncolumn entries from the values hash into a separate hash (jeremyevans) (#868)

  • v4.14.0 Changes

    September 01, 2014
    • ๐Ÿ‘ป Raise original exception if there is an exception raised when rolling back transaction/savepoint (jeremyevans) (#875)

    • ๐Ÿ‘ Allow delayed evaluation blocks to take dataset as an argument (jeremyevans)

    • ๐Ÿ‘ Allow more types as filter expressions, only specifically disallow Numeric/String expressions (jeremyevans)

    • โœ‚ Remove objects from cached association array at time of nested_attributes call instead of waiting until save (jeremyevans)

    • Handle composite primary keys when working around validation issues for one_to_(one|many) associations in nested_attributes plugin (jeremyevans) (#870)

    • Recognize additional disconnect error in jdbc/jtds adapter (jeremyevans)

    • Have association_join work with existing model selections (jeremyevans)

    • Fix regression in class_table_inheritance plugin when lazily loading column in middle table (jeremyevans) (#862)

    • Add cache_key_prefix method to caching plugin, which can be overridden for custom handling (pete) (#861)

    • โž• Add :when option to PostgreSQL create_trigger method, for adding a filter to the trigger (aschrab) (#860)

    • Recognize an additional serialization failure on PostgreSQL (tmtm) (#857)

  • v4.13.0 Changes

    August 01, 2014
    • ๐Ÿ‘ฏ Use copy constructors instead of overriding Model#dup and #clone (ged, jeremyevans) (#852)

    • Fix handling of MySQL create_table foreign_key calls using :key option (mimperatore, jeremyevans) (#850)

    • ๐Ÿ– Handle another disconnection error in the postgres adapter (lbosque) (#848)

    • โšก๏ธ Make list plugin update remaining positions after destroying an instance (ehq, jeremyevans) (#847)

    • Unalias aliased tables in Dataset#insert (jeremyevans)

    • Add insert_returning_select plugin, for setting up RETURNING for inserts for models selecting explicit columns (jeremyevans)

    • ๐Ÿ‘‰ Make Model#save use insert_select if the dataset used for inserting already uses returning (jeremyevans)

    • Add Dataset#unqualified_column_for helper method, returning unqualified version of possibly qualified column (jeremyevans)

    • ๐Ÿ‘ Calling Dataset#returning when the Database does not support or emulate RETURNING now raises an Error (jeremyevans)

    • Emulate RETURNING on Microsoft SQL Server using OUTPUT, as long as only simple column references are used (jeremyevans)

    • Switch class_table_inheritance plugin to use JOIN ON instead of JOIN USING (jeremyevans)

    • Qualify primary keys for models with joined datasets when looking up model instances by primary key (jeremyevans)

    • ๐Ÿ›  Fix qualification of columns when Dataset#graph automatically wraps the initially graphed dataset in a subselect (jeremyevans)

    • ๐Ÿ‘‰ Make Dataset#joined_dataset? a public method (jeremyevans)

    • ๐Ÿ‘ Allow external jdbc, odbc, and do subadapters to be loaded automatically (jeremyevans)

    • Recognize another disconnect error in the jdbc/mysql adapter (jeremyevans)

    • Set primary keys correctly for models even if datasets select specific columns (jeremyevans)

    • Add dataset_source_alias extension, for automatically aliasing datasets to their first source (jeremyevans)

    • ๐Ÿ”Œ Use qualified columns in the lazy_attributes plugin (jeremyevans)

    • โž• Add column_select plugin, for using explicit column selections in model datasets (jeremyevans)

    • ๐Ÿ‘‰ Use associated model's existing selection for join associations if it consists solely of explicitly quailfied columns (jeremyevans)

    • โž• Add round_timestamps extension for automatically rounding timestamp values to database precision before literalizing (jeremyevans)

    • 0๏ธโƒฃ Make rake default task run plugin specs as well as core/model specs (jeremyevans)

    • Use all_tables and all_views for Database#tables and #views on Oracle (jeremyevans)

    • Use all_tab_cols instead of user_tab cols for defaults parsing in the oracle adapter (jeremyevans)

    • ๐Ÿ›  Fix recursive mutex locking issue on JRuby when using Sequel::Model(dataset) (jeremyevans) (#841)

    • ๐Ÿ”Œ Make composition and serialization plugins support validations on underlying columns (jeremyevans)

    • ๐Ÿ›  Fix regression in timestamps and table inheritance plugin where column values would not be saved if validation is skipped (jeremyevans) (#839)

    • โž• Add pg_enum extension, for dealing with PostgreSQL enums (jeremyevans)

    • โž• Add modification_detection plugin, for automatic detection of in-place column value modifications (jeremyevans)

    • ๐Ÿ‘ Speed up using plain strings, numbers, true, false, and nil in json columns if underlying json library supports them (jeremyevans) (#834)

  • v4.12.0 Changes

    July 01, 2014
    • ๐Ÿ‘Œ Support :readonly Database option in sqlite adapter (ippeiukai, jeremyevans) (#832)

    • Automatically setup max_length validations for string columns in the auto_validations plugin (jeremyevans)

    • โž• Add :max_length entry to column schema hashes for string types (jeremyevans)

    • Add :before_thread_exit option to Database#listen_for_static_cache_updates in pg_static_cache_updater extension (jeremyevans)

    • โž• Add Database#values on PostgreSQL to create a dataset that uses VALUES instead of SELECT (jeremyevans)

    • Add Model#set_nested_attributes to nested_attributes, allowing setting nested attributes options per-call (jeremyevans)

    • ๐Ÿ”Œ Use explicit columns when using automatically prepared SELECT statements in the prepared statement plugins (jeremyevans)

    • ๐Ÿ‘‰ Make Dataset#insert_select on PostgreSQL respect existing RETURNING clause (jeremyevans)

    • ๐Ÿ›  Fix eager loading limited associations via a UNION when an association block is used (jeremyevans)

    • Associate reciprocal object before saving associated object when creating new objects in nested_attributes (chanks, jeremyevans) (#831)

    • ๐Ÿ“œ Handle intervals containing more than 100 hours in the pg_interval extension's parser (will) (#827)

    • โœ‚ Remove methods/class deprecated in 4.11.0 (jeremyevans)

    • Allow Dataset#natural_join/cross_join and related methods to take a options hash passed to join_table (jeremyevans)

    • Add :reset_implicit_qualifier option to Dataset#join_table, to set false to not reset the implicit qualifier (jeremyevans)

    • ๐Ÿ‘Œ Support :notice_receiver Database option when postgres adapter is used with pg driver (jeltz, jeremyevans) (#825)

  • v4.11.0 Changes

    June 03, 2014
    • Add :model_map option to class_table_inheritance plugin so class names don't need to be stored in the database (jeremyevans)

    • ๐Ÿคก Set version when using for MySQL/SQLite emulation in the mock adapter (jeremyevans)

    • โž• Add support for CUBRID/SQLAnywhere emulation to the mock adapter (jeremyevans)

    • Add support for the jsonb operators added in PostgreSQL 9.4 to the pg_json_ops extension (jeremyevans)

    • Add support for new json/jsonb functions added in PostgreSQL 9.4 to the pg_json_ops extension (jeremyevans)

    • Add support for the PostgreSQL 9.4+ jsonb type to the pg_json_ops extension (jeremyevans)

    • โž• Add support for derived column lists to Sequel.as and SQL::AliasMethods#as (jeremyevans)

    • ๐Ÿ‘Œ Support connecting to a DB2 catalog name in the ibmdb adapter (calh) (#821)

    • ๐Ÿ›  Fix warnings in some cases in the ibmdb adapter (calh) (#820)

    • โž• Add SQL::Function#with_ordinality for creating set returning functions WITH ORDINALITY (jeremyevans)

    • โž• Add SQL::Function#filter for creating filtered aggregate function calls (jeremyevans)

    • โž• Add SQL::Function#within_group for creating ordered-set and hypothetical-set aggregate functions (jeremyevans)

    • โž• Add SQL::Function#lateral, for creating set returning functions that will be preceded by LATERAL (jeremyevans)

    • โž• Add SQL::Function#quoted and #unquoted methods, to enable/disable quoting of function names (jeremyevans)

    • Deprecate Dataset#{window,emulated,}_function_sql_append (jeremyevans)

    • ๐Ÿ—„ Deprecate SQL::WindowFunction and SQL::EmulatedFunction classes, switch to using options on SQL::Function (jeremyevans)

    • ๐Ÿ”Œ Only modify changed_columns if deserialized value changes in the serialization plugin (jeremyevans) (#818)

    • ๐Ÿ‘Œ Support PostgreSQL 9.4+ jsonb type in the pg_json extension (jeremyevans)

    • Allow Postgres::ArrayOp#unnest to accept arguments in the pg_array_ops extension (jeremyevans)

    • Add Postgres::ArrayOp#cardinality to the pg_array_ops extension (jeremyevans)

    • โž• Add :check option to Database#create_view for WITH [LOCAL] CHECK OPTION support (jeremyevans)

    • โž• Add :concurrently option to Database#refresh_view on PostgreSQL to support concurrent refresh of materialized views (jeremyevans)

    • Call the :after_connect Database option proc with both the connection and server/shard if it accepts 2 arguments (pedro, jeremyevans) (#813)

    • ๐Ÿ”Œ Make multiple plugins set values before validation instead of before create, works better with auto_validations (jeremyevans)

    • ๐Ÿ‘Œ Support a default Dataset#import slice size, set to 500 on SQLite (jeremyevans) (#810)

    • ๐Ÿ‘‰ Make :read_only transaction option be per-savepoint on PostgreSQL (jeremyevans) (#807)

    • Add :rank option to Dataset#full_text_search on PostgreSQL, to order by the ranking (jeremyevans) (#809)

    • โœ‚ Remove methods deprecated in 4.10.0 (jeremyevans)

  • v4.10.0 Changes

    May 01, 2014
    • ๐Ÿ‘‰ Make Model.include API same as Module.include (ged) (#803)

    • Dataset::PlaceholderLiteralizer now handles DelayedEvaluations correctly (jeremyevans)

    • โ™ป๏ธ Refactor type conversion in the jdbc adapter, for up to a 20% speedup (jeremyevans)

    • Add Dataset#with_fetch_size to jdbc adapter, for setting fetch size for JDBC ResultSets (jeremyevans)

    • 0๏ธโƒฃ Default to a fetch_size of 100 in the jdbc/oracle adapter, similar to the oci8-based oracle adapter (jeremyevans)

    • Add Database#fetch_size accessor and :fetch_size option to jdbc adapter, for setting JDBC Statement fetch size (jeremyevans)

    • Automatically determine array type in pg_array_associations plugin, explicitly cast arrays in more places (jeremyevans, maccman) (#800)

    • Speed up Dataset#literal for symbols 60% by caching results, speeding up dataset literalization up to 40% or more (jeremyevans)

    • Speed up Sequel.split_symbol 10-20x by caching results, speeding up dataset literalization up to 80% or more (jeremyevans)

    • Speed up dataset literalization for simple datasets by up to 100% (jeremyevans)

    • ๐Ÿ‘Œ Support :fractional_seconds Database option on MySQL 5.6.5+ to support fractional seconds by default (jeremyevans) (#797)

    • โ†ช Work around MySQL 5.6+ bug when combining DROP FOREIGN KEY and DROP INDEX in same ALTER TABLE statement (jeremyevans)

    • ๐Ÿ”Œ Make auto_validations plugin handle models that select from subqueries (jeremyevans)

    • Recognize additional disconnect errors in the postgres adapter (jeremyevans)

    • ๐Ÿ‘‰ Make import/multi_insert insert multiple rows in a single query using a UNION on Oracle, DB2, and Firebird (jeremyevans)

    • Speed up association_pks many_to_many setter method by using Dataset#import (jeremyevans)

    • โž• Add Model.prepared_finder, similar to .finder but using a prepared statement (jeremyevans)

    • Model.def_{add_method,association_dataset_methods,remove_methods} are now deprecated (jeremyevans)

    • Model.eager_loading_dataset and Model.apply_association_dataset_opts are now deprecated (jeremyevans)

    • Make prepared_statement_associations plugin handle one_through_one and one_through_many associations (jeremyevans)

    • ๐Ÿ‘‰ Use placeholder literalizer for regular association loading for up to 85% speedup (jeremyevans)

    • ๐Ÿ‘‰ Use placeholder literalizer for eager association loading for up to 20% speedup (jeremyevans)

    • Make Model#marshallable! work correctly when using the tactical_eager_loading plugin (jeremyevans)

    • Respect :foreign_key_constraint_name option when adding columns to existing table on MySQL (noah256) (#795)

    • AssociationReflection#association_dataset now handles joining tables if necessary (jeremyevans)

    • Support drop_view :if_exists option on SQLite, MySQL, H2, and HSQLDB (jeremyevans) (#793)

    • Support drop_table :if_exists option on HSQLDB (jeremyevans)

    • โž• Add Database#transaction :auto_savepoint option, for automatically using a savepoint in nested transactions (jeremyevans)

    • โž• Add :server_version Database option on Microsoft SQL Server, instead of querying the database for it (jeremyevans)

    • Support :correlated_subquery as an eager_graph and filter by associations limit strategy for one_to_* associations (jeremyevans)

    • Support named paramters in call_mssql_sproc on Microsoft SQL Server (y.zemlyanukhin, jeremyevans) (#792)

    • ๐Ÿ– Handle placeholder literalizer arguments when emulating offsets (jeremyevans)

    • Don't attempt to emulate offsets if the dataset uses literal SQL (jeremyevans)

    • 0๏ธโƒฃ Use a UNION-based strategy by default to eagerly load limited associations (jeremyevans)

    • ๐Ÿ‘Œ Support offsets without limits on MySQL, SQLite, H2, SQLAnywhere and CUBRID (jeremyevans)

    • โœ‚ Remove the install/uninstall rake tasks (jeremyevans)

    • ๐Ÿ‘‰ Use INSERT VALUES with multiple rows for Dataset#import and #multi_insert on more databases (jeremyevans)

    • ๐Ÿ‘Œ Support common table expressions (WITH clause) on SQLite >=3.8.3 (jeremyevans)