Changelog History
Page 10
-
v4.24.0 Changes
July 01, 2015Allow class_table_inheritance plugin to support subclasses that don't add additional columns (QuinnHarris, jeremyevans) (#1030)
โ Add :columns option to update_refresh plugin, specifying the columns to include in the RETURNING clause (celsworth) (#1029)
๐ Use column symbol key for auto validation unique errors if the unique index is on a single column (jeremyevans)
๐ Allow :timeout option to Database#listen in the postgres adapter to be a callable object (celsworth) (#1028)
Add pg_inet_ops extension, for DSL support for PostgreSQL inet/cidr operators and functions (celsworth, jeremyevans) (#1024)
Support :*_opts options in auto_validations plugin, for setting options for the underlying validation methods (celsworth, jeremyevans) (#1026)
Support :delay_pks association option in association_pks to delay setting of associated_pks until after saving (jeremyevans)
๐ Make jdbc subadapters work if they issue queries while the subadapter is being loaded (jeremyevans) (#1022)
๐ Handle 64-bit auto incrementing primary keys in jdbc subadapters (DougEverly) (#1018, #1019)
โ Remove the deprecated db2 and dbi adapters (jeremyevans)
๐ Make auto_validation plugin use :from=>:values option to setup validations on the underlying columns (jeremyevans)
โ Add :from=>:values option to validation_helpers methods, for getting values from the values hash instead of a method call (jeremyevans)
-
v4.23.0 Changes
June 01, 2015๐ Make dataset.call_sproc(:insert) work in the jdbc adapter (flash-gordon) (#1013)
โ Add update_refresh plugin, for refreshing a model instance when updating (jeremyevans)
โ Add delay_add_association plugin, for delaying add_* method calls on new objects until after saving the object (jeremyevans)
โ Add validate_associated plugin, for validating associated objects when validating the current object (jeremyevans)
๐ Make Postgres::JSONBOp#[] and #get_text return JSONBOp instances (jeremyevans) (#1005)
โ Remove the fdbsql, jdbc/fdbsql, and openbase adapters (jeremyevans)
โช Database#transaction now returns block return value if :rollback=>:always is used (jeremyevans)
๐ Allow postgresql:// connection strings as aliases to postgres://, for compatibility with libpq (jeremyevans) (#1004)
๐ Make Model#move_to in the list plugin handle out-of-range targets without raising an exception (jeremyevans) (#1003)
Make Database#add_named_conversion_proc on PostgreSQL handle conversion procs for enum types (celsworth) (#1002)
-
v4.22.0 Changes
May 01, 2015๐ Deprecate the db2, dbi, fdbsql, firebird, jdbc/fdbsql, informix, and openbase adapters (jeremyevans)
Avoid hash allocations and rehashes (jeremyevans)
Don't silently ignore :jdbc_properties Database option in jdbc adapter (jeremyevans)
๐ Make tree plugin set reciprocal association for children association correctly (lpil, jeremyevans) (#995)
โ Add Sequel::MassAssignmentRestriction exception, raised for mass assignment errors in strict mode (jeremyevans) (#994)
๐ Handle ODBC::SQL_BIT type as boolean in the odbc adapter, fixing boolean handling on odbc/mssql (jrgns) (#993)
0๏ธโฃ Make :auto_validations plugin check :default entry instead of :ruby_default entry for checking existence of default value (jeremyevans) (#990)
0๏ธโฃ Adapters should now set :default schema option to nil when adapter can determine that the value is nil (jeremyevans)
Do not add a schema :max_length entry for a varchar(max) column on MSSQL (jeremyevans)
๐ Allow :default value for PostgreSQL array columns to be a ruby array when using the pg_array extension (jeremyevans) (#989)
โ Add csv_serializer plugin for serializing model objects to and from csv (bjmllr, jeremyevans) (#988)
Make Dataset#to_hash and #to_hash_groups handle single array argument for model datasets (jeremyevans)
๐ Handle Model#cancel_action in association before hooks (jeremyevans)
๐ Use a condition variable instead of busy waiting in the threaded connection pools on ruby 1.9+ (jeremyevans)
๐ Use Symbol#to_proc instead of explicit blocks (jeremyevans)
-
v4.21.0 Changes
April 01, 2015Support :tsquery and :tsvector options in Dataset#full_text_search on PostgreSQL, for using existing tsquery/tsvector expressions (jeremyevans)
๐ Fix TinyTds::Error being raised when trying to cancel a query on a closed connection in the tinytds adapter (jeremyevans)
โ Add GenericExpression#!~ for inverting =~ on ruby 1.9 (similar to inverting a hash) (jeremyevans) (#979)
โ Add GenericExpression#=~ for equality, inclusion, and pattern matching (similar to using a hash) (jeremyevans) (#979)
Add Database#add_named_conversion_proc on PostgreSQL to make it easier to add conversion procs for types by name (jeremyevans)
๐ Make Sequel.pg_jsonb return JSONBOp instances instead of JSONOp instances when passed other than Array or Hash (jeremyevans) (#977)
0๏ธโฃ Demodulize default root name in json_serializer plugin (janko-m) (#968)
Make Database#transaction work in after_commit/after_rollback blocks (jeremyevans)
-
v4.20.0 Changes
March 03, 2015โช Restore the use of AUTOINCREMENT on SQLite (jeremyevans) (#965)
Duplicate the associations hash when duplicating a model object (jeremyevans)
0๏ธโฃ Correctly apply association limit when eager loading with an eager block using default limit strategy on some databases (jeremyevans)
๐ Fix eager loading when using the :window_function limit strategy with an eager block and cascaded associations (jeremyevans)
Add support for set_column_type :auto_increment=>true to add AUTO_INCREMENT to existing column on MySQL (jeremyevans) (#959)
โ Add support for overridding the :instance_specific association option (jeremyevans)
Recognize MSSQL bit type as boolean in the schema_dumper (jeremyevans)
Skip eager loading queries if there are no matching keys (jeremyevans) (#952)
Dataset#paged_each now returns an enumerator if not passed a block (jeremyevans)
Use to_json :root option with string value as the JSON object key in the json_serializer plugin (jeremyevans)
Allow create_enum in the pg_enum extension be reversible in migrations (celsworth) (#951)
Have swift adapter respect database and application timezone settings (asppsa, jeremyevans) (#946)
๐ Don't have the static cache plugin attempt to validate objects (jeremyevans)
๐ Make freeze not validate objects if their errors are already frozen (jeremyevans)
๐ Only use prepared statements for associations if caching association metadata (jeremyevans)
๐ Set parent association when loading descendants in the rcte_tree plugin (jeremyevans)
โ Add Database#transaction :before_retry option, specifying a proc to call before retrying (uhoh-itsmaciek) (#941)
-
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, 2014Make 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)