sequel 5.20.0 → 5.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +398 -1922
- data/MIT-LICENSE +1 -1
- data/README.rdoc +7 -7
- data/doc/advanced_associations.rdoc +4 -4
- data/doc/association_basics.rdoc +80 -16
- data/doc/cheat_sheet.rdoc +6 -5
- data/doc/code_order.rdoc +10 -12
- data/doc/dataset_filtering.rdoc +17 -2
- data/doc/fork_safety.rdoc +84 -0
- data/doc/migration.rdoc +11 -5
- data/doc/model_dataset_method_design.rdoc +1 -1
- data/doc/model_plugins.rdoc +1 -1
- data/doc/opening_databases.rdoc +10 -2
- data/doc/postgresql.rdoc +82 -3
- data/doc/querying.rdoc +4 -4
- data/doc/release_notes/5.21.0.txt +87 -0
- data/doc/release_notes/5.22.0.txt +48 -0
- data/doc/release_notes/5.23.0.txt +56 -0
- data/doc/release_notes/5.24.0.txt +56 -0
- data/doc/release_notes/5.25.0.txt +32 -0
- data/doc/release_notes/5.26.0.txt +35 -0
- data/doc/release_notes/5.27.0.txt +21 -0
- data/doc/release_notes/5.28.0.txt +16 -0
- data/doc/release_notes/5.29.0.txt +22 -0
- data/doc/release_notes/5.30.0.txt +20 -0
- data/doc/release_notes/5.31.0.txt +148 -0
- data/doc/release_notes/5.32.0.txt +46 -0
- data/doc/release_notes/5.33.0.txt +24 -0
- data/doc/release_notes/5.34.0.txt +40 -0
- data/doc/release_notes/5.35.0.txt +56 -0
- data/doc/release_notes/5.36.0.txt +60 -0
- data/doc/release_notes/5.37.0.txt +30 -0
- data/doc/release_notes/5.38.0.txt +28 -0
- data/doc/release_notes/5.39.0.txt +19 -0
- data/doc/release_notes/5.40.0.txt +40 -0
- data/doc/release_notes/5.41.0.txt +25 -0
- data/doc/release_notes/5.42.0.txt +136 -0
- data/doc/release_notes/5.43.0.txt +98 -0
- data/doc/release_notes/5.44.0.txt +32 -0
- data/doc/release_notes/5.45.0.txt +34 -0
- data/doc/release_notes/5.46.0.txt +87 -0
- data/doc/release_notes/5.47.0.txt +59 -0
- data/doc/release_notes/5.48.0.txt +14 -0
- data/doc/release_notes/5.49.0.txt +59 -0
- data/doc/sharding.rdoc +2 -0
- data/doc/sql.rdoc +13 -1
- data/doc/testing.rdoc +20 -7
- data/doc/transactions.rdoc +0 -8
- data/doc/validations.rdoc +1 -1
- data/doc/virtual_rows.rdoc +1 -1
- data/lib/sequel/adapters/ado/access.rb +1 -1
- data/lib/sequel/adapters/ado.rb +43 -35
- data/lib/sequel/adapters/ibmdb.rb +2 -2
- data/lib/sequel/adapters/jdbc/mysql.rb +6 -6
- data/lib/sequel/adapters/jdbc/postgresql.rb +11 -17
- data/lib/sequel/adapters/jdbc/sqlite.rb +29 -0
- data/lib/sequel/adapters/jdbc.rb +24 -6
- data/lib/sequel/adapters/mysql.rb +1 -1
- data/lib/sequel/adapters/mysql2.rb +2 -3
- data/lib/sequel/adapters/odbc.rb +8 -6
- data/lib/sequel/adapters/oracle.rb +5 -4
- data/lib/sequel/adapters/postgres.rb +15 -9
- data/lib/sequel/adapters/shared/access.rb +6 -6
- data/lib/sequel/adapters/shared/mssql.rb +66 -21
- data/lib/sequel/adapters/shared/mysql.rb +27 -10
- data/lib/sequel/adapters/shared/oracle.rb +29 -23
- data/lib/sequel/adapters/shared/postgres.rb +271 -32
- data/lib/sequel/adapters/shared/sqlanywhere.rb +9 -9
- data/lib/sequel/adapters/shared/sqlite.rb +161 -19
- data/lib/sequel/adapters/sqlanywhere.rb +1 -1
- data/lib/sequel/adapters/sqlite.rb +1 -1
- data/lib/sequel/adapters/tinytds.rb +15 -2
- data/lib/sequel/adapters/utils/mysql_mysql2.rb +4 -1
- data/lib/sequel/ast_transformer.rb +6 -0
- data/lib/sequel/connection_pool/sharded_single.rb +4 -1
- data/lib/sequel/connection_pool/sharded_threaded.rb +12 -12
- data/lib/sequel/connection_pool/single.rb +1 -1
- data/lib/sequel/connection_pool/threaded.rb +2 -2
- data/lib/sequel/core.rb +333 -319
- data/lib/sequel/database/connecting.rb +3 -4
- data/lib/sequel/database/logging.rb +7 -1
- data/lib/sequel/database/misc.rb +31 -12
- data/lib/sequel/database/query.rb +3 -1
- data/lib/sequel/database/schema_generator.rb +53 -51
- data/lib/sequel/database/schema_methods.rb +38 -23
- data/lib/sequel/database/transactions.rb +17 -18
- data/lib/sequel/dataset/actions.rb +14 -9
- data/lib/sequel/dataset/features.rb +16 -0
- data/lib/sequel/dataset/misc.rb +2 -2
- data/lib/sequel/dataset/placeholder_literalizer.rb +3 -7
- data/lib/sequel/dataset/prepared_statements.rb +2 -0
- data/lib/sequel/dataset/query.rb +26 -9
- data/lib/sequel/dataset/sql.rb +76 -25
- data/lib/sequel/dataset.rb +4 -2
- data/lib/sequel/deprecated.rb +3 -1
- data/lib/sequel/exceptions.rb +2 -0
- data/lib/sequel/extensions/_pretty_table.rb +1 -2
- data/lib/sequel/extensions/any_not_empty.rb +45 -0
- data/lib/sequel/extensions/async_thread_pool.rb +438 -0
- data/lib/sequel/extensions/blank.rb +8 -0
- data/lib/sequel/extensions/columns_introspection.rb +1 -2
- data/lib/sequel/extensions/connection_expiration.rb +2 -2
- data/lib/sequel/extensions/connection_validator.rb +2 -2
- data/lib/sequel/extensions/core_refinements.rb +2 -0
- data/lib/sequel/extensions/date_arithmetic.rb +36 -24
- data/lib/sequel/extensions/duplicate_columns_handler.rb +3 -1
- data/lib/sequel/extensions/eval_inspect.rb +2 -0
- data/lib/sequel/extensions/exclude_or_null.rb +68 -0
- data/lib/sequel/extensions/fiber_concurrency.rb +24 -0
- data/lib/sequel/extensions/index_caching.rb +9 -7
- data/lib/sequel/extensions/inflector.rb +9 -1
- data/lib/sequel/extensions/integer64.rb +2 -0
- data/lib/sequel/extensions/migration.rb +11 -3
- data/lib/sequel/extensions/named_timezones.rb +56 -8
- data/lib/sequel/extensions/pagination.rb +1 -1
- data/lib/sequel/extensions/pg_array.rb +5 -0
- data/lib/sequel/extensions/pg_array_ops.rb +14 -6
- data/lib/sequel/extensions/pg_enum.rb +11 -3
- data/lib/sequel/extensions/pg_extended_date_support.rb +2 -2
- data/lib/sequel/extensions/pg_hstore.rb +6 -0
- data/lib/sequel/extensions/pg_hstore_ops.rb +54 -2
- data/lib/sequel/extensions/pg_inet.rb +15 -5
- data/lib/sequel/extensions/pg_interval.rb +36 -8
- data/lib/sequel/extensions/pg_json.rb +387 -123
- data/lib/sequel/extensions/pg_json_ops.rb +238 -0
- data/lib/sequel/extensions/pg_loose_count.rb +3 -1
- data/lib/sequel/extensions/pg_range.rb +17 -9
- data/lib/sequel/extensions/pg_range_ops.rb +2 -0
- data/lib/sequel/extensions/pg_row.rb +4 -2
- data/lib/sequel/extensions/pg_row_ops.rb +24 -0
- data/lib/sequel/extensions/pg_timestamptz.rb +2 -0
- data/lib/sequel/extensions/query.rb +3 -0
- data/lib/sequel/extensions/run_transaction_hooks.rb +72 -0
- data/lib/sequel/extensions/s.rb +2 -0
- data/lib/sequel/extensions/schema_dumper.rb +24 -7
- data/lib/sequel/extensions/server_block.rb +18 -7
- data/lib/sequel/extensions/sql_comments.rb +2 -2
- data/lib/sequel/extensions/string_agg.rb +1 -1
- data/lib/sequel/extensions/symbol_aref_refinement.rb +2 -0
- data/lib/sequel/extensions/symbol_as_refinement.rb +2 -0
- data/lib/sequel/extensions/to_dot.rb +9 -3
- data/lib/sequel/model/associations.rb +356 -117
- data/lib/sequel/model/base.rb +107 -68
- data/lib/sequel/model/errors.rb +10 -1
- data/lib/sequel/model/inflections.rb +1 -1
- data/lib/sequel/model/plugins.rb +9 -3
- data/lib/sequel/model.rb +3 -1
- data/lib/sequel/plugins/association_lazy_eager_option.rb +66 -0
- data/lib/sequel/plugins/association_multi_add_remove.rb +85 -0
- data/lib/sequel/plugins/association_pks.rb +60 -18
- data/lib/sequel/plugins/association_proxies.rb +8 -2
- data/lib/sequel/plugins/async_thread_pool.rb +39 -0
- data/lib/sequel/plugins/auto_validations.rb +39 -5
- data/lib/sequel/plugins/auto_validations_constraint_validations_presence_message.rb +68 -0
- data/lib/sequel/plugins/blacklist_security.rb +1 -2
- data/lib/sequel/plugins/boolean_subsets.rb +4 -1
- data/lib/sequel/plugins/caching.rb +3 -0
- data/lib/sequel/plugins/class_table_inheritance.rb +33 -28
- data/lib/sequel/plugins/column_encryption.rb +728 -0
- data/lib/sequel/plugins/composition.rb +7 -2
- data/lib/sequel/plugins/concurrent_eager_loading.rb +174 -0
- data/lib/sequel/plugins/constraint_validations.rb +2 -1
- data/lib/sequel/plugins/csv_serializer.rb +28 -9
- data/lib/sequel/plugins/dataset_associations.rb +4 -1
- data/lib/sequel/plugins/dirty.rb +60 -22
- data/lib/sequel/plugins/empty_failure_backtraces.rb +38 -0
- data/lib/sequel/plugins/forbid_lazy_load.rb +216 -0
- data/lib/sequel/plugins/insert_conflict.rb +72 -0
- data/lib/sequel/plugins/instance_specific_default.rb +113 -0
- data/lib/sequel/plugins/json_serializer.rb +57 -35
- data/lib/sequel/plugins/lazy_attributes.rb +1 -1
- data/lib/sequel/plugins/many_through_many.rb +108 -9
- data/lib/sequel/plugins/nested_attributes.rb +15 -3
- data/lib/sequel/plugins/pg_array_associations.rb +58 -41
- data/lib/sequel/plugins/pg_auto_constraint_validations.rb +91 -30
- data/lib/sequel/plugins/prepared_statements.rb +15 -12
- data/lib/sequel/plugins/prepared_statements_safe.rb +1 -3
- data/lib/sequel/plugins/rcte_tree.rb +43 -35
- data/lib/sequel/plugins/serialization.rb +8 -3
- data/lib/sequel/plugins/serialization_modification_detection.rb +1 -1
- data/lib/sequel/plugins/sharding.rb +11 -5
- data/lib/sequel/plugins/single_table_inheritance.rb +22 -15
- data/lib/sequel/plugins/skip_saving_columns.rb +108 -0
- data/lib/sequel/plugins/static_cache.rb +9 -4
- data/lib/sequel/plugins/static_cache_cache.rb +53 -0
- data/lib/sequel/plugins/string_stripper.rb +1 -1
- data/lib/sequel/plugins/subclasses.rb +2 -0
- data/lib/sequel/plugins/throw_failures.rb +1 -1
- data/lib/sequel/plugins/timestamps.rb +1 -1
- data/lib/sequel/plugins/tree.rb +9 -4
- data/lib/sequel/plugins/typecast_on_load.rb +3 -2
- data/lib/sequel/plugins/unused_associations.rb +521 -0
- data/lib/sequel/plugins/update_or_create.rb +1 -1
- data/lib/sequel/plugins/validation_class_methods.rb +5 -1
- data/lib/sequel/plugins/validation_helpers.rb +18 -11
- data/lib/sequel/plugins/xml_serializer.rb +1 -1
- data/lib/sequel/sql.rb +20 -5
- data/lib/sequel/timezones.rb +63 -17
- data/lib/sequel/version.rb +1 -1
- metadata +113 -381
- data/Rakefile +0 -151
- data/doc/release_notes/4.0.0.txt +0 -262
- data/doc/release_notes/4.1.0.txt +0 -85
- data/doc/release_notes/4.10.0.txt +0 -226
- data/doc/release_notes/4.11.0.txt +0 -147
- data/doc/release_notes/4.12.0.txt +0 -105
- data/doc/release_notes/4.13.0.txt +0 -169
- data/doc/release_notes/4.14.0.txt +0 -68
- data/doc/release_notes/4.15.0.txt +0 -56
- data/doc/release_notes/4.16.0.txt +0 -36
- data/doc/release_notes/4.17.0.txt +0 -38
- data/doc/release_notes/4.18.0.txt +0 -36
- data/doc/release_notes/4.19.0.txt +0 -45
- data/doc/release_notes/4.2.0.txt +0 -129
- data/doc/release_notes/4.20.0.txt +0 -79
- data/doc/release_notes/4.21.0.txt +0 -94
- data/doc/release_notes/4.22.0.txt +0 -72
- data/doc/release_notes/4.23.0.txt +0 -65
- data/doc/release_notes/4.24.0.txt +0 -99
- data/doc/release_notes/4.25.0.txt +0 -181
- data/doc/release_notes/4.26.0.txt +0 -44
- data/doc/release_notes/4.27.0.txt +0 -78
- data/doc/release_notes/4.28.0.txt +0 -57
- data/doc/release_notes/4.29.0.txt +0 -41
- data/doc/release_notes/4.3.0.txt +0 -40
- data/doc/release_notes/4.30.0.txt +0 -37
- data/doc/release_notes/4.31.0.txt +0 -57
- data/doc/release_notes/4.32.0.txt +0 -132
- data/doc/release_notes/4.33.0.txt +0 -88
- data/doc/release_notes/4.34.0.txt +0 -86
- data/doc/release_notes/4.35.0.txt +0 -130
- data/doc/release_notes/4.36.0.txt +0 -116
- data/doc/release_notes/4.37.0.txt +0 -50
- data/doc/release_notes/4.38.0.txt +0 -67
- data/doc/release_notes/4.39.0.txt +0 -127
- data/doc/release_notes/4.4.0.txt +0 -92
- data/doc/release_notes/4.40.0.txt +0 -179
- data/doc/release_notes/4.41.0.txt +0 -77
- data/doc/release_notes/4.42.0.txt +0 -221
- data/doc/release_notes/4.43.0.txt +0 -87
- data/doc/release_notes/4.44.0.txt +0 -125
- data/doc/release_notes/4.45.0.txt +0 -370
- data/doc/release_notes/4.46.0.txt +0 -404
- data/doc/release_notes/4.47.0.txt +0 -56
- data/doc/release_notes/4.48.0.txt +0 -293
- data/doc/release_notes/4.49.0.txt +0 -222
- data/doc/release_notes/4.5.0.txt +0 -34
- data/doc/release_notes/4.6.0.txt +0 -30
- data/doc/release_notes/4.7.0.txt +0 -103
- data/doc/release_notes/4.8.0.txt +0 -175
- data/doc/release_notes/4.9.0.txt +0 -190
- data/spec/adapter_spec.rb +0 -4
- data/spec/adapters/db2_spec.rb +0 -170
- data/spec/adapters/mssql_spec.rb +0 -804
- data/spec/adapters/mysql_spec.rb +0 -1065
- data/spec/adapters/oracle_spec.rb +0 -371
- data/spec/adapters/postgres_spec.rb +0 -4125
- data/spec/adapters/spec_helper.rb +0 -44
- data/spec/adapters/sqlanywhere_spec.rb +0 -97
- data/spec/adapters/sqlite_spec.rb +0 -652
- data/spec/bin_spec.rb +0 -278
- data/spec/core/connection_pool_spec.rb +0 -1250
- data/spec/core/database_spec.rb +0 -2865
- data/spec/core/dataset_spec.rb +0 -5515
- data/spec/core/deprecated_spec.rb +0 -70
- data/spec/core/expression_filters_spec.rb +0 -1455
- data/spec/core/mock_adapter_spec.rb +0 -722
- data/spec/core/object_graph_spec.rb +0 -336
- data/spec/core/placeholder_literalizer_spec.rb +0 -166
- data/spec/core/schema_generator_spec.rb +0 -214
- data/spec/core/schema_spec.rb +0 -1826
- data/spec/core/spec_helper.rb +0 -24
- data/spec/core/version_spec.rb +0 -14
- data/spec/core_extensions_spec.rb +0 -763
- data/spec/core_model_spec.rb +0 -2
- data/spec/core_spec.rb +0 -1
- data/spec/deprecation_helper.rb +0 -30
- data/spec/extensions/accessed_columns_spec.rb +0 -51
- data/spec/extensions/active_model_spec.rb +0 -99
- data/spec/extensions/after_initialize_spec.rb +0 -28
- data/spec/extensions/arbitrary_servers_spec.rb +0 -109
- data/spec/extensions/association_dependencies_spec.rb +0 -125
- data/spec/extensions/association_pks_spec.rb +0 -423
- data/spec/extensions/association_proxies_spec.rb +0 -100
- data/spec/extensions/auto_literal_strings_spec.rb +0 -205
- data/spec/extensions/auto_validations_spec.rb +0 -229
- data/spec/extensions/blacklist_security_spec.rb +0 -95
- data/spec/extensions/blank_spec.rb +0 -69
- data/spec/extensions/boolean_readers_spec.rb +0 -93
- data/spec/extensions/boolean_subsets_spec.rb +0 -47
- data/spec/extensions/caching_spec.rb +0 -273
- data/spec/extensions/caller_logging_spec.rb +0 -52
- data/spec/extensions/class_table_inheritance_spec.rb +0 -750
- data/spec/extensions/column_conflicts_spec.rb +0 -75
- data/spec/extensions/column_select_spec.rb +0 -129
- data/spec/extensions/columns_introspection_spec.rb +0 -90
- data/spec/extensions/columns_updated_spec.rb +0 -35
- data/spec/extensions/composition_spec.rb +0 -248
- data/spec/extensions/connection_expiration_spec.rb +0 -151
- data/spec/extensions/connection_validator_spec.rb +0 -144
- data/spec/extensions/constant_sql_override_spec.rb +0 -24
- data/spec/extensions/constraint_validations_plugin_spec.rb +0 -300
- data/spec/extensions/constraint_validations_spec.rb +0 -439
- data/spec/extensions/core_refinements_spec.rb +0 -528
- data/spec/extensions/csv_serializer_spec.rb +0 -183
- data/spec/extensions/current_datetime_timestamp_spec.rb +0 -27
- data/spec/extensions/dataset_associations_spec.rb +0 -365
- data/spec/extensions/dataset_source_alias_spec.rb +0 -51
- data/spec/extensions/date_arithmetic_spec.rb +0 -181
- data/spec/extensions/datetime_parse_to_time_spec.rb +0 -169
- data/spec/extensions/def_dataset_method_spec.rb +0 -100
- data/spec/extensions/defaults_setter_spec.rb +0 -150
- data/spec/extensions/delay_add_association_spec.rb +0 -73
- data/spec/extensions/dirty_spec.rb +0 -189
- data/spec/extensions/duplicate_columns_handler_spec.rb +0 -104
- data/spec/extensions/eager_each_spec.rb +0 -62
- data/spec/extensions/eager_graph_eager_spec.rb +0 -100
- data/spec/extensions/empty_array_consider_nulls_spec.rb +0 -24
- data/spec/extensions/error_splitter_spec.rb +0 -18
- data/spec/extensions/error_sql_spec.rb +0 -20
- data/spec/extensions/escaped_like_spec.rb +0 -40
- data/spec/extensions/eval_inspect_spec.rb +0 -81
- data/spec/extensions/finder_spec.rb +0 -260
- data/spec/extensions/force_encoding_spec.rb +0 -126
- data/spec/extensions/freeze_datasets_spec.rb +0 -31
- data/spec/extensions/graph_each_spec.rb +0 -113
- data/spec/extensions/hook_class_methods_spec.rb +0 -402
- data/spec/extensions/identifier_mangling_spec.rb +0 -201
- data/spec/extensions/implicit_subquery_spec.rb +0 -58
- data/spec/extensions/index_caching_spec.rb +0 -66
- data/spec/extensions/inflector_spec.rb +0 -183
- data/spec/extensions/input_transformer_spec.rb +0 -69
- data/spec/extensions/insert_returning_select_spec.rb +0 -72
- data/spec/extensions/instance_filters_spec.rb +0 -79
- data/spec/extensions/instance_hooks_spec.rb +0 -246
- data/spec/extensions/integer64_spec.rb +0 -22
- data/spec/extensions/inverted_subsets_spec.rb +0 -33
- data/spec/extensions/json_serializer_spec.rb +0 -336
- data/spec/extensions/lazy_attributes_spec.rb +0 -183
- data/spec/extensions/list_spec.rb +0 -291
- data/spec/extensions/looser_typecasting_spec.rb +0 -43
- data/spec/extensions/many_through_many_spec.rb +0 -2177
- data/spec/extensions/migration_spec.rb +0 -864
- data/spec/extensions/modification_detection_spec.rb +0 -93
- data/spec/extensions/mssql_optimistic_locking_spec.rb +0 -92
- data/spec/extensions/named_timezones_spec.rb +0 -111
- data/spec/extensions/nested_attributes_spec.rb +0 -767
- data/spec/extensions/null_dataset_spec.rb +0 -85
- data/spec/extensions/optimistic_locking_spec.rb +0 -127
- data/spec/extensions/pagination_spec.rb +0 -116
- data/spec/extensions/pg_array_associations_spec.rb +0 -802
- data/spec/extensions/pg_array_ops_spec.rb +0 -144
- data/spec/extensions/pg_array_spec.rb +0 -398
- data/spec/extensions/pg_auto_constraint_validations_spec.rb +0 -172
- data/spec/extensions/pg_enum_spec.rb +0 -118
- data/spec/extensions/pg_extended_date_support_spec.rb +0 -126
- data/spec/extensions/pg_hstore_ops_spec.rb +0 -238
- data/spec/extensions/pg_hstore_spec.rb +0 -219
- data/spec/extensions/pg_inet_ops_spec.rb +0 -102
- data/spec/extensions/pg_inet_spec.rb +0 -72
- data/spec/extensions/pg_interval_spec.rb +0 -103
- data/spec/extensions/pg_json_ops_spec.rb +0 -289
- data/spec/extensions/pg_json_spec.rb +0 -262
- data/spec/extensions/pg_loose_count_spec.rb +0 -23
- data/spec/extensions/pg_range_ops_spec.rb +0 -60
- data/spec/extensions/pg_range_spec.rb +0 -519
- data/spec/extensions/pg_row_ops_spec.rb +0 -61
- data/spec/extensions/pg_row_plugin_spec.rb +0 -60
- data/spec/extensions/pg_row_spec.rb +0 -363
- data/spec/extensions/pg_static_cache_updater_spec.rb +0 -93
- data/spec/extensions/pg_timestamptz_spec.rb +0 -17
- data/spec/extensions/prepared_statements_safe_spec.rb +0 -66
- data/spec/extensions/prepared_statements_spec.rb +0 -177
- data/spec/extensions/pretty_table_spec.rb +0 -123
- data/spec/extensions/query_spec.rb +0 -94
- data/spec/extensions/rcte_tree_spec.rb +0 -381
- data/spec/extensions/round_timestamps_spec.rb +0 -39
- data/spec/extensions/s_spec.rb +0 -60
- data/spec/extensions/schema_caching_spec.rb +0 -64
- data/spec/extensions/schema_dumper_spec.rb +0 -870
- data/spec/extensions/select_remove_spec.rb +0 -38
- data/spec/extensions/sequel_4_dataset_methods_spec.rb +0 -121
- data/spec/extensions/serialization_modification_detection_spec.rb +0 -98
- data/spec/extensions/serialization_spec.rb +0 -365
- data/spec/extensions/server_block_spec.rb +0 -97
- data/spec/extensions/server_logging_spec.rb +0 -45
- data/spec/extensions/sharding_spec.rb +0 -189
- data/spec/extensions/shared_caching_spec.rb +0 -151
- data/spec/extensions/single_table_inheritance_spec.rb +0 -347
- data/spec/extensions/singular_table_names_spec.rb +0 -22
- data/spec/extensions/skip_create_refresh_spec.rb +0 -18
- data/spec/extensions/spec_helper.rb +0 -63
- data/spec/extensions/split_array_nil_spec.rb +0 -24
- data/spec/extensions/split_values_spec.rb +0 -57
- data/spec/extensions/sql_comments_spec.rb +0 -33
- data/spec/extensions/sql_expr_spec.rb +0 -59
- data/spec/extensions/static_cache_spec.rb +0 -471
- data/spec/extensions/string_agg_spec.rb +0 -90
- data/spec/extensions/string_date_time_spec.rb +0 -95
- data/spec/extensions/string_stripper_spec.rb +0 -68
- data/spec/extensions/subclasses_spec.rb +0 -79
- data/spec/extensions/subset_conditions_spec.rb +0 -38
- data/spec/extensions/symbol_aref_refinement_spec.rb +0 -28
- data/spec/extensions/symbol_as_refinement_spec.rb +0 -21
- data/spec/extensions/synchronize_sql_spec.rb +0 -124
- data/spec/extensions/table_select_spec.rb +0 -83
- data/spec/extensions/tactical_eager_loading_spec.rb +0 -402
- data/spec/extensions/thread_local_timezones_spec.rb +0 -67
- data/spec/extensions/throw_failures_spec.rb +0 -74
- data/spec/extensions/timestamps_spec.rb +0 -209
- data/spec/extensions/to_dot_spec.rb +0 -153
- data/spec/extensions/touch_spec.rb +0 -226
- data/spec/extensions/tree_spec.rb +0 -334
- data/spec/extensions/typecast_on_load_spec.rb +0 -86
- data/spec/extensions/unlimited_update_spec.rb +0 -21
- data/spec/extensions/update_or_create_spec.rb +0 -83
- data/spec/extensions/update_primary_key_spec.rb +0 -105
- data/spec/extensions/update_refresh_spec.rb +0 -59
- data/spec/extensions/uuid_spec.rb +0 -101
- data/spec/extensions/validate_associated_spec.rb +0 -52
- data/spec/extensions/validation_class_methods_spec.rb +0 -1040
- data/spec/extensions/validation_contexts_spec.rb +0 -31
- data/spec/extensions/validation_helpers_spec.rb +0 -525
- data/spec/extensions/whitelist_security_spec.rb +0 -157
- data/spec/extensions/xml_serializer_spec.rb +0 -213
- data/spec/files/bad_down_migration/001_create_alt_basic.rb +0 -4
- data/spec/files/bad_down_migration/002_create_alt_advanced.rb +0 -4
- data/spec/files/bad_timestamped_migrations/1273253849_create_sessions.rb +0 -9
- data/spec/files/bad_timestamped_migrations/1273253851_create_nodes.rb +0 -9
- data/spec/files/bad_timestamped_migrations/1273253853_3_create_users.rb +0 -3
- data/spec/files/bad_up_migration/001_create_alt_basic.rb +0 -4
- data/spec/files/bad_up_migration/002_create_alt_advanced.rb +0 -3
- data/spec/files/convert_to_timestamp_migrations/001_create_sessions.rb +0 -9
- data/spec/files/convert_to_timestamp_migrations/002_create_nodes.rb +0 -9
- data/spec/files/convert_to_timestamp_migrations/003_3_create_users.rb +0 -4
- data/spec/files/convert_to_timestamp_migrations/1273253850_create_artists.rb +0 -9
- data/spec/files/convert_to_timestamp_migrations/1273253852_create_albums.rb +0 -9
- data/spec/files/double_migration/001_create_sessions.rb +0 -9
- data/spec/files/double_migration/002_create_nodes.rb +0 -19
- data/spec/files/double_migration/003_3_create_users.rb +0 -4
- data/spec/files/duplicate_integer_migrations/001_create_alt_advanced.rb +0 -4
- data/spec/files/duplicate_integer_migrations/001_create_alt_basic.rb +0 -4
- data/spec/files/duplicate_timestamped_migrations/1273253849_create_sessions.rb +0 -9
- data/spec/files/duplicate_timestamped_migrations/1273253853_create_nodes.rb +0 -9
- data/spec/files/duplicate_timestamped_migrations/1273253853_create_users.rb +0 -4
- data/spec/files/empty_migration/001_create_sessions.rb +0 -9
- data/spec/files/empty_migration/002_create_nodes.rb +0 -0
- data/spec/files/empty_migration/003_3_create_users.rb +0 -4
- data/spec/files/integer_migrations/001_create_sessions.rb +0 -9
- data/spec/files/integer_migrations/002_create_nodes.rb +0 -9
- data/spec/files/integer_migrations/003_3_create_users.rb +0 -4
- data/spec/files/interleaved_timestamped_migrations/1273253849_create_sessions.rb +0 -9
- data/spec/files/interleaved_timestamped_migrations/1273253850_create_artists.rb +0 -9
- data/spec/files/interleaved_timestamped_migrations/1273253851_create_nodes.rb +0 -9
- data/spec/files/interleaved_timestamped_migrations/1273253852_create_albums.rb +0 -9
- data/spec/files/interleaved_timestamped_migrations/1273253853_3_create_users.rb +0 -4
- data/spec/files/missing_integer_migrations/001_create_alt_basic.rb +0 -4
- data/spec/files/missing_integer_migrations/003_create_alt_advanced.rb +0 -4
- data/spec/files/missing_timestamped_migrations/1273253849_create_sessions.rb +0 -9
- data/spec/files/missing_timestamped_migrations/1273253853_3_create_users.rb +0 -4
- data/spec/files/reversible_migrations/001_reversible.rb +0 -5
- data/spec/files/reversible_migrations/002_reversible.rb +0 -5
- data/spec/files/reversible_migrations/003_reversible.rb +0 -5
- data/spec/files/reversible_migrations/004_reversible.rb +0 -5
- data/spec/files/reversible_migrations/005_reversible.rb +0 -10
- data/spec/files/reversible_migrations/006_reversible.rb +0 -10
- data/spec/files/reversible_migrations/007_reversible.rb +0 -10
- data/spec/files/timestamped_migrations/1273253849_create_sessions.rb +0 -9
- data/spec/files/timestamped_migrations/1273253851_create_nodes.rb +0 -9
- data/spec/files/timestamped_migrations/1273253853_3_create_users.rb +0 -4
- data/spec/files/transaction_specified_migrations/001_create_alt_basic.rb +0 -4
- data/spec/files/transaction_specified_migrations/002_create_basic.rb +0 -4
- data/spec/files/transaction_unspecified_migrations/001_create_alt_basic.rb +0 -3
- data/spec/files/transaction_unspecified_migrations/002_create_basic.rb +0 -3
- data/spec/files/uppercase_timestamped_migrations/1273253849_CREATE_SESSIONS.RB +0 -9
- data/spec/files/uppercase_timestamped_migrations/1273253851_CREATE_NODES.RB +0 -9
- data/spec/files/uppercase_timestamped_migrations/1273253853_3_CREATE_USERS.RB +0 -4
- data/spec/guards_helper.rb +0 -59
- data/spec/integration/associations_test.rb +0 -2597
- data/spec/integration/database_test.rb +0 -113
- data/spec/integration/dataset_test.rb +0 -1981
- data/spec/integration/eager_loader_test.rb +0 -687
- data/spec/integration/migrator_test.rb +0 -262
- data/spec/integration/model_test.rb +0 -203
- data/spec/integration/plugin_test.rb +0 -2396
- data/spec/integration/prepared_statement_test.rb +0 -405
- data/spec/integration/schema_test.rb +0 -889
- data/spec/integration/spec_helper.rb +0 -65
- data/spec/integration/timezone_test.rb +0 -86
- data/spec/integration/transaction_test.rb +0 -603
- data/spec/integration/type_test.rb +0 -127
- data/spec/model/association_reflection_spec.rb +0 -803
- data/spec/model/associations_spec.rb +0 -4738
- data/spec/model/base_spec.rb +0 -875
- data/spec/model/class_dataset_methods_spec.rb +0 -146
- data/spec/model/dataset_methods_spec.rb +0 -198
- data/spec/model/eager_loading_spec.rb +0 -2377
- data/spec/model/hooks_spec.rb +0 -370
- data/spec/model/inflector_spec.rb +0 -26
- data/spec/model/model_spec.rb +0 -956
- data/spec/model/plugins_spec.rb +0 -429
- data/spec/model/record_spec.rb +0 -2118
- data/spec/model/spec_helper.rb +0 -46
- data/spec/model/validations_spec.rb +0 -220
- data/spec/model_no_assoc_spec.rb +0 -1
- data/spec/model_spec.rb +0 -1
- data/spec/plugin_spec.rb +0 -1
- data/spec/sequel_coverage.rb +0 -15
- data/spec/sequel_warning.rb +0 -4
- data/spec/spec_config.rb +0 -12
data/CHANGELOG
CHANGED
@@ -1,3 +1,401 @@
|
|
1
|
+
=== 5.49.0 (2021-10-01)
|
2
|
+
|
3
|
+
* Switch block_given? usage to defined?(yield) (jeremyevans)
|
4
|
+
|
5
|
+
* Support table aliases for JOIN USING columns on PostgreSQL 14+ (jeremyevans)
|
6
|
+
|
7
|
+
* Support calling PostgreSQL procedures without arguments (jeremyevans)
|
8
|
+
|
9
|
+
* Support hstore subscripts in pg_hstore_ops on PostgreSQL 14+, for updating only part of an hstore value (jeremyevans)
|
10
|
+
|
11
|
+
* Support JSONB subscripts in pg_json_ops on PostgreSQL 14+, for updating only part of a JSONB value (jeremyevans)
|
12
|
+
|
13
|
+
* Support SQL::Expression#sequel_ast_transform for custom AST transforms on arbitrary expressions (jeremyevans)
|
14
|
+
|
15
|
+
* Add Database#create_trigger :replace option on PostgreSQL 14+ for CREATE OR REPLACE TRIGGER (jeremyevans)
|
16
|
+
|
17
|
+
* Make auto_validations plugin automatically setup no_null_byte validations (jeremyevans)
|
18
|
+
|
19
|
+
* Add Model#validates_no_null_byte to validation_helpers plugin (jeremyevans)
|
20
|
+
|
21
|
+
=== 5.48.0 (2021-09-01)
|
22
|
+
|
23
|
+
* Make the unused_associations plugin association reflection tracking work correctly when combining coverage runs (jeremyevans)
|
24
|
+
|
25
|
+
* Add Database#like_without_collate on MSSQL, to avoid using COLLATE on LIKE arguments, which can significantly improve performance (jeremyevans)
|
26
|
+
|
27
|
+
* Add Model::Errors#full_message private method for easiest i18n support for errors with multiple attributes (jeremyevans) (#1779)
|
28
|
+
|
29
|
+
=== 5.47.0 (2021-08-01)
|
30
|
+
|
31
|
+
* Make the unused_associations plugin track access to association reflections to determine whether associations are used (jeremyevans)
|
32
|
+
|
33
|
+
* Support :db option for join tables in {many,one}_through_many to use a separate query for each join table (jeremyevans)
|
34
|
+
|
35
|
+
* Support :join_table_db option for many_to_many/one_through_one associations, to use a separate query for the join table (jeremyevans)
|
36
|
+
|
37
|
+
* Support :allow_eager_graph and :allow_filtering_by association options (jeremyevans)
|
38
|
+
|
39
|
+
* Add Database#rename_tables on MySQL, for renaming multiple tables in a single call (nick96) (#1774)
|
40
|
+
|
41
|
+
* Support Dataset#returning on SQLite 3.35+ (jeremyevans)
|
42
|
+
|
43
|
+
=== 5.46.0 (2021-07-01)
|
44
|
+
|
45
|
+
* Add unused_associations plugin, for determining which associations and association methods are not used (jeremyevans)
|
46
|
+
|
47
|
+
* Make nil :setter/:adder/:remover/:clearer association options not create related methods (jeremyevans)
|
48
|
+
|
49
|
+
=== 5.45.0 (2021-06-01)
|
50
|
+
|
51
|
+
* Fix handling of NULL values in boolean columns in the ODBC adapter (jeremyevans) (#1765)
|
52
|
+
|
53
|
+
* Add auto_validations_constraint_validations_presence_message plugin for auto_validations/constraint_validations presence message integration (jeremyevans)
|
54
|
+
|
55
|
+
* Support Dataset#with :materialized option on SQLite 3.35+ for [NOT] MATERIALIZED (jeremyevans)
|
56
|
+
|
57
|
+
* Use ALTER TABLE DROP COLUMN for dropping columns on SQLite 3.35+ (jeremyevans)
|
58
|
+
|
59
|
+
=== 5.44.0 (2021-05-01)
|
60
|
+
|
61
|
+
* Add concurrent_eager_loading plugin, for eager loading multiple associations concurrently using separate threads (jeremyevans)
|
62
|
+
|
63
|
+
* Support :weeks as a interval unit in the date_arithmetic extension (jeremyevans) (#1759)
|
64
|
+
|
65
|
+
* Raise an exception if an interval hash with an unsupported key is passed in the date_arithmetic extension (jeremyevans) (#1759)
|
66
|
+
|
67
|
+
* Support dropping non-composite unique constraints on SQLite (jeremyevans) (#1755)
|
68
|
+
|
69
|
+
=== 5.43.0 (2021-04-01)
|
70
|
+
|
71
|
+
* Add column_encryption plugin, for encrypting column values (jeremyevans)
|
72
|
+
|
73
|
+
=== 5.42.0 (2021-03-01)
|
74
|
+
|
75
|
+
* Make the ado timestamp conversion proc a normal conversion proc that can be overridden similar to other conversion procs (jeremyevans)
|
76
|
+
|
77
|
+
* Add :reject_nil option to the nested_attributes method, to ignore calls where nil is passed as the associated object data (jeremyevans)
|
78
|
+
|
79
|
+
* Add async_thread_pool plugin for easier async usage with model classes and support for async destroy, with_pk, and with_pk! methods (jeremyevans)
|
80
|
+
|
81
|
+
* Add async_thread_pool Database extension for executing queries asynchronously using a thread pool (jeremyevans)
|
82
|
+
|
83
|
+
* Fix possible thread safety issue in Database#extension that could allow Module#extended to be called twice with the same Database instance (jeremyevans)
|
84
|
+
|
85
|
+
* Support cases where validations make modifications beyond setting errors in Model#freeze (jeremyevans)
|
86
|
+
|
87
|
+
* Add Model#to_json_data to the json_serializer plugin, returning a JSON data structure (jeremyevans)
|
88
|
+
|
89
|
+
=== 5.41.0 (2021-02-01)
|
90
|
+
|
91
|
+
* Have explicit :text option for a String column take priority over :size option on PostgreSQL (jeremyevans) (#1750)
|
92
|
+
|
93
|
+
* Support a :skip_invalid option in auto_validations plugin for not adding errors to a column that already has an error (jeremyevans)
|
94
|
+
|
95
|
+
* Support a :skip_invalid option in validation_helpers for not adding an error to a column that already has an error (jeremyevans)
|
96
|
+
|
97
|
+
* Support :adder, :remover, and :clearer association options that use keyword arguments in Ruby 2.7+ (jeremyevans)
|
98
|
+
|
99
|
+
* Make pg_interval use the same number of seconds per year and per month as ActiveSupport::Duration when using ActiveSupport 5.1+ (jeremyevans)
|
100
|
+
|
101
|
+
=== 5.40.0 (2021-01-01)
|
102
|
+
|
103
|
+
* Support UPDATE FROM syntax in SQLite 3.33.0+ (jeremyevans)
|
104
|
+
|
105
|
+
* Have pg_interval extension work with ActiveSupport 6.1 (jeremyevans)
|
106
|
+
|
107
|
+
* Have date_arithmetic extension work with ActiveSupport 6.1 (jeremyevans)
|
108
|
+
|
109
|
+
* Avoid method redefinition warnings in verbose warning mode (jeremyevans)
|
110
|
+
|
111
|
+
=== 5.39.0 (2020-12-01)
|
112
|
+
|
113
|
+
* Support :clustered option for primary key and unique constraints on Microsoft SQL Server (jeremyevans)
|
114
|
+
|
115
|
+
* Do not modify the size of binary columns when using set_column_allow_null on Microsoft SQL Server (jeremyevans) (#1736)
|
116
|
+
|
117
|
+
* Add a fork safety guide with more detail on how to use Sequel with libraries that fork (janko) (#1733)
|
118
|
+
|
119
|
+
* Make the roots_dataset method in the tree plugin work with queries using joins (jeremyevans) (#1731)
|
120
|
+
|
121
|
+
* Make Database#tables return partitioned tables on PostgreSQL 10+ (epoberezhny) (#1729, #1730)
|
122
|
+
|
123
|
+
=== 5.38.0 (2020-11-01)
|
124
|
+
|
125
|
+
* Do not add new Database instances to Sequel::DATABASES if the test connection fails (jeremyevans) (#1727)
|
126
|
+
|
127
|
+
* Support the newer com.mysql.cj.jdbc.Driver in the jdbc/mysql adapter (jeremyevans)
|
128
|
+
|
129
|
+
* Do not swallow disconnect errors in Database#create_or_replace_view or Database#create_table* on Oracle (jeremyevans)
|
130
|
+
|
131
|
+
* Only rescue non-disconnect Sequel::DatabaseErrors in Postgres::Database#server_version (jeremyevans) (#1724)
|
132
|
+
|
133
|
+
* Make the single_table_inheritance and prepared_statements plugins work if loaded into the same class (jeremyevans) (#1721)
|
134
|
+
|
135
|
+
=== 5.37.0 (2020-10-01)
|
136
|
+
|
137
|
+
* Recognize more unsigned decimal/float types in the schema dumper (akimd, jeremyevans) (#1720)
|
138
|
+
|
139
|
+
* Add Postgres::PGRow::{Array,Hash}Row#op to the pg_row_ops extension if the pg_row extension is loaded (jeremyevans)
|
140
|
+
|
141
|
+
* Add Model#column_previously_was and #column_previously_changed? to the dirty plugin (jeremyevans)
|
142
|
+
|
143
|
+
* Raise Migrator::Error if attempting to migrate down to a version where there are necessary migration files missing (jeremyevans) (#1716)
|
144
|
+
|
145
|
+
=== 5.36.0 (2020-09-01)
|
146
|
+
|
147
|
+
* Handle passing keyword arguments through class methods defined via Plugins.def_dataset_method on Ruby 2.7+ (jeremyevans)
|
148
|
+
|
149
|
+
* Handle passing keyword arguments through when loading plugins on Ruby 2.7+ (jeremyevans)
|
150
|
+
|
151
|
+
* Handle passing keyword arguments through migrations when defining custom Database methods that accept keywords on Ruby 2.7+ (jeremyevans)
|
152
|
+
|
153
|
+
* Handle passing keyword arguments through Dataset#query when using the query extension on Ruby 2.7+ (jeremyevans)
|
154
|
+
|
155
|
+
* Handle passing keyword arguments through the association proxy when using the association_proxies plugin on Ruby 2.7+ (jeremyevans)
|
156
|
+
|
157
|
+
* Handle passing keyword arguments through the class method to a method defined in dataset_module on Ruby 2.7+ (adam12) (#1713)
|
158
|
+
|
159
|
+
* Stream result sets in the odbc adapter for better performance and lower memory usage (sparrovv) (#1711)
|
160
|
+
|
161
|
+
* Add Postgres::JSONBOp#set_lax and #path_*_tz methods to the pg_json_ops extension for new jsonb functions added in PostgreSQL 13 (jeremyevans)
|
162
|
+
|
163
|
+
* Add Dataset#with_ties on PostgreSQL 13+ and Microsoft SQL Server to include rows with same order as final row (jeremyevans)
|
164
|
+
|
165
|
+
* 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)
|
166
|
+
|
167
|
+
* Recognize another disconnect error in the mysql and mysql2 adapters (jeremyevans) (#1706)
|
168
|
+
|
169
|
+
=== 5.35.0 (2020-08-01)
|
170
|
+
|
171
|
+
* Recognize another disconnect error in the oracle adapter (sterlzbd) (#1705)
|
172
|
+
|
173
|
+
* Consider all associations with :dataset options as instance-specific associations (jeremyevans)
|
174
|
+
|
175
|
+
* Make Model.finalize_associations not break with instance-specific associations (jeremyevans)
|
176
|
+
|
177
|
+
* Make association placeholder loader consider block if instance_specific: false association option is used (jeremyevans)
|
178
|
+
|
179
|
+
* Copy composite unique constraints when emulating alter table operations on SQLite (jeremyevans) (#1704)
|
180
|
+
|
181
|
+
* Add instance_specific_default plugin for setting default association :instance_specific value, or warning/raising for cases where it is not specified (jeremyevans)
|
182
|
+
|
183
|
+
* Make Model.plugin issue deprecation warning if loading plugin with arguments and block if plugin does not accept arguments/block (jeremyevans)
|
184
|
+
|
185
|
+
* Make validation_class_methods consider all :if, :allow_missing, :allow_nil, and :allow_blank settings, instead of just the first (jeremyevans)
|
186
|
+
|
187
|
+
* Include hash entries with nil keys in Dataset#to_dot output in to_dot extension (jeremyevans)
|
188
|
+
|
189
|
+
* Remove unneeded conditionals from plugins and extensions (jeremyevans)
|
190
|
+
|
191
|
+
* Fix exception class in run_transaction_hooks extension if calling run_after_{commit,rollback}_hooks outside of a transaction (jeremyevans)
|
192
|
+
|
193
|
+
=== 5.34.0 (2020-07-01)
|
194
|
+
|
195
|
+
* Make eager_graph work correctly if called with no associations (jeremyevans)
|
196
|
+
|
197
|
+
* Make :ruby eager limit strategy handle cases where there is no limit or offset (jeremyevans)
|
198
|
+
|
199
|
+
* Do not keep a reference to a Sequel::Database instance that raises an exception during initialization (jeremyevans)
|
200
|
+
|
201
|
+
* Make Database#pool.all_connections not yield for a single connection pool in disconnected state (jeremyevans)
|
202
|
+
|
203
|
+
* Raise an exception if trying to disconnect a server that doesn't exist in the sharded connection pools (jeremyevans)
|
204
|
+
|
205
|
+
* Support :refresh option when calling *_pks getter method in the association_pks plugin (jeremyevans)
|
206
|
+
|
207
|
+
* Support caching of repeated calls to *_pks getter method in the association_pks plugin using :cache_pks association option (jeremyevans)
|
208
|
+
|
209
|
+
* Add *_pks_dataset methods for one_to_many and many_to_many associations when using the association_pks plugin (jeremyevans)
|
210
|
+
|
211
|
+
=== 5.33.0 (2020-06-01)
|
212
|
+
|
213
|
+
* Support custom join types on a per-association basis when using eager_graph/association_join (jeremyevans)
|
214
|
+
|
215
|
+
* Support primary_key with type: :smallserial on PostgreSQL (j-a-m-l) (#1698)
|
216
|
+
|
217
|
+
* Add Database#current_timestamp_utc accessor on SQLite to keep CURRENT_* in UTC instead of converting to localtime (jeremyevans)
|
218
|
+
|
219
|
+
=== 5.32.0 (2020-05-01)
|
220
|
+
|
221
|
+
* Allow Database#create_table? work with :partition_of option on PostgreSQL (jeremyevans) (#1690)
|
222
|
+
|
223
|
+
* Add fiber_concurrency extension, for using Fiber.current instead of Thread.current for checking out connections (jeremyevans)
|
224
|
+
|
225
|
+
* Move most Sequel singleton methods into a module that extends Sequel for easier overriding (jeremyevans)
|
226
|
+
|
227
|
+
* Fix method visibility issues in model, plugin, extension, and adapter code (jeremyevans)
|
228
|
+
|
229
|
+
* Avoid defining conversion procs for PostgreSQL inet/cidr types in pg_inet extension when using sequel_pg 1.13.0+ (jeremyevans)
|
230
|
+
|
231
|
+
* Add run_transaction_hooks Database extension, allowing for running the transaction hooks before commit/rollback, for use with transactional testing (jeremyevans)
|
232
|
+
|
233
|
+
* Recognize timestamp(N) with time zone type (isc) (#1684)
|
234
|
+
|
235
|
+
=== 5.31.0 (2020-04-01)
|
236
|
+
|
237
|
+
* Fix alter_table drop_constraint :primary_key option on SQLite for non-integer primary keys (jeremyevans)
|
238
|
+
|
239
|
+
* Add skip_saving_columns plugin, which supports columns to skip when saving, and skips generated columns by default (joeosburn, jeremyevans) (#1681, #1682)
|
240
|
+
|
241
|
+
* Add support for creating partitioned tables in PostgreSQL 10+ using :partition_by and :partition_of options (jeremyevans)
|
242
|
+
|
243
|
+
* Dump generated columns as generated columns when using the schema_dumper with :same_db option on PostgreSQL 12+ (jeremyevans) (#1680)
|
244
|
+
|
245
|
+
* Ignore defaults for generated columns by default when using the schema dumper (jeremyevans) (#1680)
|
246
|
+
|
247
|
+
* Include generated columns in schema on SQLite 3.31+ (jeremyevans)
|
248
|
+
|
249
|
+
* Add :generated schema entry on PostgreSQL 12+ and SQLite 3.31+ for whether the columns is generated (jeremyevans)
|
250
|
+
|
251
|
+
* Add association_lazy_eager_option plugin for supporting :eager option for association method (jeremyevans)
|
252
|
+
|
253
|
+
* Add forbid_lazy_load plugin for forbidding lazy loading of associations, to help find N+1 issues (jeremyevans)
|
254
|
+
|
255
|
+
=== 5.30.0 (2020-03-01)
|
256
|
+
|
257
|
+
* Remove specs and old release notes from the gem to reduce gem size by over 40% (jeremyevans)
|
258
|
+
|
259
|
+
* When using Database#transaction :retry_on, call :before_retry option if retrying even if :num_retries is nil (jcmfernandes) (#1678)
|
260
|
+
|
261
|
+
* Support generated columns on SQLite 3.31+ using :generated_always_as and :generated_type options (jeremyevans)
|
262
|
+
|
263
|
+
=== 5.29.0 (2020-02-01)
|
264
|
+
|
265
|
+
* Recognize another disconnect error in the tinytds adapter (jeremyevans)
|
266
|
+
|
267
|
+
* Fix verbose warning in postgres adapter when using prepared statements and recent versions of ruby-pg (jeremyevans)
|
268
|
+
|
269
|
+
* Work correctly on Ruby 2.8+ by supporting second argument for initialize_clone (jeremyevans)
|
270
|
+
|
271
|
+
* Add empty_failure_backtraces plugin for empty backtraces for ValidationFailed and HookFailed exceptions, much faster on JRuby (jeremyevans)
|
272
|
+
|
273
|
+
* Add Dataset#json_serializer_opts to json_serializer plugin, allowing to set json_serializer options on a per-dataset basis (jeremyevans)
|
274
|
+
|
275
|
+
=== 5.28.0 (2020-01-01)
|
276
|
+
|
277
|
+
* Warn when calling Sequel::JDBC::Postgres::Dataset#with_fetch_size (jeremyevans) (#1665)
|
278
|
+
|
279
|
+
* Add exclude_or_null extension, for filtering datasets where the condition is false or NULL (jeremyevans)
|
280
|
+
|
281
|
+
* Add any_not_empty extension, for making Dataset#any? without a block mean !empty? (jeremyevans)
|
282
|
+
|
283
|
+
=== 5.27.0 (2019-12-01)
|
284
|
+
|
285
|
+
* Add Sequel::DEFAULT for a DEFAULT expression, useful for assigning to default values (jeremyevans)
|
286
|
+
|
287
|
+
* Make Postgres::ArrayOp#join in pg_array_ops extension work correctly on PostgreSQL <9.1 (jeremyevans)
|
288
|
+
|
289
|
+
* Make pg_enum extension work correctly on PostgreSQL 8.3-9.0 (jeremyevans)
|
290
|
+
|
291
|
+
* Emulate FILTER clause for aggregate functions using CASE on databases not supporting it directly (jeremyevans)
|
292
|
+
|
293
|
+
* Support ordering by NULLS FIRST/NULLS LAST without emulation on SQLite 3.30+ (jeremyevans)
|
294
|
+
|
295
|
+
=== 5.26.0 (2019-11-01)
|
296
|
+
|
297
|
+
* Recognize two additional foreign key constraint violation codes on MySQL 8.0.13+ (rianmcguire) (#1657)
|
298
|
+
|
299
|
+
* Support table aliases for single-table INSERT statements on PostgreSQL 9.5+ (jeremyevans) (#1656)
|
300
|
+
|
301
|
+
* Implement Sequel::Postgres::PGRange#hash so instances work correctly in hashes (jeremyevans) (#1648)
|
302
|
+
|
303
|
+
* Make dirty plugin work correctly with typecast_on_load plugin (jeremyevans) (#1647)
|
304
|
+
|
305
|
+
* Add support for :require_modification option when setting up nested_attributes (jeremyevans)
|
306
|
+
|
307
|
+
* Add support for SQL/JSON path expressions to the pg_json_ops extension, supported by PostgreSQL 12+ (jeremyevans)
|
308
|
+
|
309
|
+
=== 5.25.0 (2019-10-01)
|
310
|
+
|
311
|
+
* Fix Sequel::SQL::NumericMethods#coerce to not raise NoMethodError if super method is not defined (jeremyevans) (#1645)
|
312
|
+
|
313
|
+
* Allow setting a default for a column that already has a default on Microsoft SQL Server (jeremyevans)
|
314
|
+
|
315
|
+
* Fix keyword argument separation warnings on Ruby master branch in csv_serializer plugin (jeremyevans)
|
316
|
+
|
317
|
+
* Add association_multi_add_remove plugin for adding/removing multiple associated objects in a single method call (AlexWayfer, jeremyevans) (#1641, #1643)
|
318
|
+
|
319
|
+
* Make sharding plugin integrate with server_block extension (jeremyevans)
|
320
|
+
|
321
|
+
=== 5.24.0 (2019-09-01)
|
322
|
+
|
323
|
+
* Add Database#skip_logging? private method designed for extensions to force query timing even if no logger is present (adam12) (#1640)
|
324
|
+
|
325
|
+
* Allow a hostname specified in a defaults_file in the mysql2 adapter, by not explicitly setting :host (sapio-bdeamer) (#1638)
|
326
|
+
|
327
|
+
* Convert all database array types to Ruby arrays in the jdbc adapter (jeremyevans)
|
328
|
+
|
329
|
+
* Add static_cache_cache plugin for caching rows for static_cache models to a file to avoid database queries during model initialization (jeremyevans)
|
330
|
+
|
331
|
+
* Add :cache_file plugin option to pg_auto_constraint_validations plugin, for caching metadata to a file for faster initialization (jeremyevans)
|
332
|
+
|
333
|
+
* Support :unique_deferrable and :primary_key_deferrable column options (jeremyevans)
|
334
|
+
|
335
|
+
* Support :generated_always_as column option on PostgreSQL 12+ (jeremyevans)
|
336
|
+
|
337
|
+
=== 5.23.0 (2019-08-01)
|
338
|
+
|
339
|
+
* Work around a bug on jdbc-sqlite3 3.27.2.1 when parsing schema for tables with columns with default values (jeremyevans)
|
340
|
+
|
341
|
+
* Work around a bug in jdbc-sqlite3 3.27.2.1 when in Database#foreign_key_list in the jdbc/sqlite3 adapter (jeremyevans)
|
342
|
+
|
343
|
+
* Make Dataset#execute* private methods respect explicit servers option, fixing Dataset#paged_each in the postgres adapter when sharding (jeremyevans) (#1632)
|
344
|
+
|
345
|
+
* Handle instances of subclasses of core classes when wrapping objects in the pg_json extension (jeremyevans) (#1631)
|
346
|
+
|
347
|
+
* Support :ansi Database option in the tinytds adapter (kenaniah) (#1629)
|
348
|
+
|
349
|
+
* Support cross-database and linked servers when parsing schema on Microsoft SQL Server (kenaniah) (#1629)
|
350
|
+
|
351
|
+
* Add insert_conflict plugin for automatically handling unique constraint conflicts when saving new model instances on PostgreSQL 9.5+ and SQLite 3.24.0+ (jeremyevans)
|
352
|
+
|
353
|
+
* Avoid errors when parsing schema in the mock sqlite adapter (jeremyevans)
|
354
|
+
|
355
|
+
* Avoid possible thread-safety issue in the timezones support (jeremyevans)
|
356
|
+
|
357
|
+
* Handle offsets when typecasting an array or hash to datetime when Sequel.datetime_class = Time (jeremyevans)
|
358
|
+
|
359
|
+
* Support Sequel.datetime_class = Time when using the named_timezones extension (jeremyevans)
|
360
|
+
|
361
|
+
=== 5.22.0 (2019-07-01)
|
362
|
+
|
363
|
+
* Fix Dataset#multi_insert and #import with return: :primary_key on MSSQL when the dataset has a row_proc (jeremyevans) (#1627)
|
364
|
+
|
365
|
+
* Support Dataset#with :materialized option on PostgreSQL 12 for [NOT] MATERIALIZED (jeremyevans)
|
366
|
+
|
367
|
+
* Make Database#primary_key_sequence work on tables without serial sequences on PostgreSQL 12 (jeremyevans)
|
368
|
+
|
369
|
+
* Support ruby 2.7+ startless ranges in the pg_range extension (jeremyevans)
|
370
|
+
|
371
|
+
* Support ruby 2.7+ startless, endless ranges in filters, using an always true condition for them (jeremyevans)
|
372
|
+
|
373
|
+
* Support ruby 2.7+ startless ranges in filters, using just a <= or < operator for them (jeremyevans)
|
374
|
+
|
375
|
+
=== 5.21.0 (2019-06-01)
|
376
|
+
|
377
|
+
* Recognize additional DatabaseLockTimeout errors in mysql and mysql2 adapters (jeremyevans)
|
378
|
+
|
379
|
+
* Disallow eager_graph of ancestors and descendants associations when using the rcte_tree plugin (jeremyevans)
|
380
|
+
|
381
|
+
* Make jdbc/mysql adapter work when using JRuby with Java 11 (jeremyevans)
|
382
|
+
|
383
|
+
* Support window function options :window, :exclude, and :frame :type=>:groups, :start, and :end on SQLite 3.28.0+ (jeremyevans)
|
384
|
+
|
385
|
+
* Make the server_block extension respect the :servers_hash Database option (jeremyevans)
|
386
|
+
|
387
|
+
* Typecast string input for json/jsonb types as JSON strings instead of parsing as JSON in the pg_json extension when Database#typecast_json_strings is set to true (jeremyevans)
|
388
|
+
|
389
|
+
* Wrap JSON primitives (string, number, true, false, nil) in the pg_json extension when Database#wrap_json_primitives is set to true (jeremyevans)
|
390
|
+
|
391
|
+
* Convert the Database :timeout option to an integer in the sqlite adapter (jeremyevans) (#1620)
|
392
|
+
|
393
|
+
* Improve performance in ado adapter using more efficient inner loop (jeremyevans)
|
394
|
+
|
395
|
+
* Improve performance in ado adapter using faster callables for type conversion (jeremyevans)
|
396
|
+
|
397
|
+
* Fix handling of decimal values in the ado adapter when using locales where the decimal separator is , and not . (jeremyevans) (#1619)
|
398
|
+
|
1
399
|
=== 5.20.0 (2019-05-01)
|
2
400
|
|
3
401
|
* Fix reversing of alter_table add_foreign_key when :type option is used (jeremyevans) (#1615)
|
@@ -540,1928 +938,6 @@
|
|
540
938
|
|
541
939
|
* Remove deprecated adapters, extensions, plugins, constants, and features (jeremyevans)
|
542
940
|
|
543
|
-
=== 4.49.0 (2017-08-01)
|
544
|
-
|
545
|
-
* Make dataset_associations plugin automatically alias tables when using many_through_many associations that join the same table multiple times (jeremyevans)
|
546
|
-
|
547
|
-
* Deprecate using a :pool_class Database that is not a class or a symbol for a supported pool class (jeremyevans)
|
548
|
-
|
549
|
-
* Deprecate :eager_loading_predicate_key association option and association reflection method (jeremyevans)
|
550
|
-
|
551
|
-
* Deprecate Model.serialized_columns in the serialization plugin (jeremyevans)
|
552
|
-
|
553
|
-
* Deprecate Model.cti_columns in the class_table_inheritance plugin (jeremyevans)
|
554
|
-
|
555
|
-
* Deprecate SQL::AliasedExpression#aliaz, use #alias instead (jeremyevans)
|
556
|
-
|
557
|
-
* Deprecate SQL::Function#f, use #name instead (jeremyevans)
|
558
|
-
|
559
|
-
* Deprecate treating cross join with conditions as inner join on MySQL (jeremyevans)
|
560
|
-
|
561
|
-
* Deprecate ConnectionPool#created_count, use #size instead (jeremyevans)
|
562
|
-
|
563
|
-
* Deprecate ConnectionPool::CONNECTION_POOL_MAP, use the :pool_class option to specify a non-default connection pool (jeremyevans)
|
564
|
-
|
565
|
-
* Deprecate Sequel::IBMDB::Connection#prepared_statements= in the ibmdb adapter (jeremyevans)
|
566
|
-
|
567
|
-
* Deprecate DEFAULT_OPTIONS in validation_helpers, override default_validation_helpers_options private method instead (jeremyevans)
|
568
|
-
|
569
|
-
* Deprecate model association before callbacks returning false to cancel the action (jeremyevans)
|
570
|
-
|
571
|
-
* Support native offset syntax on Oracle 12 (timon) (#1397)
|
572
|
-
|
573
|
-
* Deprecate Dataset#nullify! in the null_dataset extension (jeremyevans)
|
574
|
-
|
575
|
-
* Deprecate Dataset#autoid=, #_fetch=, and #numrows= in the mock adapter (jeremyevans)
|
576
|
-
|
577
|
-
* Deprecate loading plugins by requiring sequel_#{plugin} (jeremyevans)
|
578
|
-
|
579
|
-
* Add Model.sti_class_from_sti_key in the single_table_inheritance plugin to get the appropriate class to use (Aryk) (#1396)
|
580
|
-
|
581
|
-
* Make Sequel::Error#cause use #wrapped_exception if it exists on ruby 2.1+ (jeremyevans)
|
582
|
-
|
583
|
-
* Make Dataset#where_all, #where_each, #where_single_value core dataset methods instead of just model dataset methods (jeremyevans)
|
584
|
-
|
585
|
-
* Make Database#extend_datasets and Dataset#with_extend now use a Dataset::DatasetModule instance if given a block (jeremyevans)
|
586
|
-
|
587
|
-
* Add Sequel::Dataset::DatasetModule, now a superclass of Sequel::Model::DatasetModule (jeremyevans)
|
588
|
-
|
589
|
-
* Make composition plugin with :mapping option work correctly if Model#get_column_value is overridden (jeremyevans)
|
590
|
-
|
591
|
-
* Support Dataset#paged_each :stream => false option on mysql2 to disable streaming (Aryk) (#1395)
|
592
|
-
|
593
|
-
* Make datetimeoffset handling in the jdbc/sqlserver adapter work on more drivers (jeremyevans)
|
594
|
-
|
595
|
-
* Make alter_table add_primary_key work correctly on H2 1.4+ (jeremyevans)
|
596
|
-
|
597
|
-
* Support :sslrootcert Database option in the postgres adapter (dleavitt) (#1391)
|
598
|
-
|
599
|
-
=== 4.48.0 (2017-07-01)
|
600
|
-
|
601
|
-
* Deprecate Model.<< (jeremyevans)
|
602
|
-
|
603
|
-
* Deprecate Dataset#{and,exclude_where,range,interval}, move to sequel_4_dataset_methods extension (jeremyevans)
|
604
|
-
|
605
|
-
* Make Database#indexes not include partial indexes on SQLite 3.8.8+ (jeremyevans)
|
606
|
-
|
607
|
-
* Make Database#indexes include indexes created automatically from unique constraints on SQLite 3.8.8+ (jeremyevans)
|
608
|
-
|
609
|
-
* Deprecate Sequel::Postgres::PG_TYPES, conversion procs should not be registered per-Database (jeremyevans)
|
610
|
-
|
611
|
-
* Add Database#add_conversion_proc method on PostgreSQL for registering conversion procs (jeremyevans)
|
612
|
-
|
613
|
-
* Deprecate unexpected values passed to Dataset#insert_conflict on SQLite (jeremyevans)
|
614
|
-
|
615
|
-
* Deprecate Sequel::SqlAnywhere::Dataset#convert_smallint_to_bool= method (jeremyevans)
|
616
|
-
|
617
|
-
* Deprecate Sequel::SqlAnywhere.convert_smallint_to_bool accessor (jeremyevans)
|
618
|
-
|
619
|
-
* Use savepoints around index creation if creating table inside transaction if ignore_index_errors is used (jeremyevans)
|
620
|
-
|
621
|
-
* Deprecate treating :natrual_inner join type on MySQL as NATURAL LEFT JOIN (jeremyevans)
|
622
|
-
|
623
|
-
* Deprecate Dataset#mssql_unicode_strings= on Microsoft SQL Server (jeremyevans)
|
624
|
-
|
625
|
-
* Preserve encoding when parsing PostgreSQL arrays (jeltz) (#1387)
|
626
|
-
|
627
|
-
* Deprecate external modification of Sequel::JDBC::TypeConvertor (jeremyevans)
|
628
|
-
|
629
|
-
* Deprecate Sequel::DB2.use_clob_as_blob accessor (jeremyevans)
|
630
|
-
|
631
|
-
* Add Database#use_clob_as_blob accessor on DB2 (jeremyevans)
|
632
|
-
|
633
|
-
* Deprecate SEQUEL_POSTGRES_USES_PG constant (jeremyevans)
|
634
|
-
|
635
|
-
* Do not swallow original exception if exception is raised inside Database#copy_table on PostgreSQL (jeremyevans)
|
636
|
-
|
637
|
-
* Deprecate Sequel::Postgres.client_min_messages and force_standard_strings accessors (jeremyevans)
|
638
|
-
|
639
|
-
* Deprecate Sequel::Postgres.use_iso_date_format accessor (jeremyevans)
|
640
|
-
|
641
|
-
* Do not allow connection in postgres adapter if postgres-pr driver is used and force_standard_strings is false (jeremyevans)
|
642
|
-
|
643
|
-
* Drop support for ancient postgres driver in postgres adapter, now only pg and postgres-pr drivers are supported (jeremyevans)
|
644
|
-
|
645
|
-
* Deprecate Sequel::MySQL.convert_invalid_date_time accessor (jeremyevans)
|
646
|
-
|
647
|
-
* Deprecate Sequel::MySQL.convert_tinyint_to_bool accessor (jeremyevans)
|
648
|
-
|
649
|
-
* Deprecate Sequel::MySQL.default_{charset,collate,engine} accessors (jeremyevans)
|
650
|
-
|
651
|
-
* Add Database#default_{charset,collate,engine} accessors on MySQL (jeremyevans)
|
652
|
-
|
653
|
-
* Make mock adapter thread safe (jeremyevans)
|
654
|
-
|
655
|
-
* Deprecate Sequel::JDBC::Dataset#convert_types accessor (jeremyevans)
|
656
|
-
|
657
|
-
* Add Dataset#with_convert_types in jdbc adapter (jeremyevans)
|
658
|
-
|
659
|
-
* Deprecate Sequel::IBMDB::Dataset#convert_smallint_to_bool= method (jeremyevans)
|
660
|
-
|
661
|
-
* Deprecate Sequel::IBMDB.convert_smallint_to_bool accessor (jeremyevans)
|
662
|
-
|
663
|
-
* Add Database#convert_smallint_to_bool accessor in the ibmdb adapter (jeremyevans)
|
664
|
-
|
665
|
-
* Deprecate sequel_3_dataset_methods extension (jeremyevans)
|
666
|
-
|
667
|
-
* Deprecate query_literals extension (jeremyevans)
|
668
|
-
|
669
|
-
* Deprecate using subtype conversion procs added after registering composite type in the pg_row extension (jeremyevans)
|
670
|
-
|
671
|
-
* Don't try canceling copy in Database#copy_into if copier is not created yet (aakashAu) (#1384)
|
672
|
-
|
673
|
-
* Deprecate global conversion procs added by pg_* extensions, when extension isn't loaded into Database instance (jeremyevans)
|
674
|
-
|
675
|
-
* Deprecate Sequel::Postgres::PGRange.register in the pg_range extension (jeremyevans)
|
676
|
-
|
677
|
-
* Deprecate Sequel::Postgres::PGArray.register in the pg_array extension (jeremyevans)
|
678
|
-
|
679
|
-
* Deprecate Database#copy_conversion_procs (private method) on PostgreSQL (jeremyevans)
|
680
|
-
|
681
|
-
* Deprecate Database#reset_conversion_procs on PostgreSQL (jeremyevans)
|
682
|
-
|
683
|
-
* Deprecate meta_def extension (jeremyevans)
|
684
|
-
|
685
|
-
* Make class_table_inheritance plugin with :alias option not use subquery for datasets that don't join (jeremyevans)
|
686
|
-
|
687
|
-
* Deprecate hash_aliases extension (jeremyevans)
|
688
|
-
|
689
|
-
* Deprecate filter_having extension (jeremyevans)
|
690
|
-
|
691
|
-
* Deprecate empty_array_ignore_nulls extension (jeremyevans)
|
692
|
-
|
693
|
-
* Deprecate Array#sql_array in the core_extensions extension (jeremyevans)
|
694
|
-
|
695
|
-
* Make validation_helpers plugin :allow_blank option work correctly when the blank extension is not loaded (jeremyevans)
|
696
|
-
|
697
|
-
* Make validation_class_methods plugin no longer require the blank extension (jeremyevans)
|
698
|
-
|
699
|
-
* Clear cached associations when touching associations in the touch plugin (jeremyevans)
|
700
|
-
|
701
|
-
* Make pg_array_associations model plugin load pg_array extension into database (jeremyevans)
|
702
|
-
|
703
|
-
* Remove support for :strict option in nested_attributes plugin, use :unmatched_pk option instead (jeremyevans)
|
704
|
-
|
705
|
-
* Make to_json class/dataset method in json_serializer plugin accept :instance_block option to pass block to Model#to_json (jeremyevans)
|
706
|
-
|
707
|
-
* Make to_json methods in json_serializer plugin accept blocks that are used to transform values before serializing to JSON (jeremyevans)
|
708
|
-
|
709
|
-
* Make Sequel.object_to_json pass block to #to_json (jeremyevans)
|
710
|
-
|
711
|
-
* Deprecate identifier_columns plugin, not needed with Sequel.split_symbols = false (jeremyevans)
|
712
|
-
|
713
|
-
* Make reloading column_conflicts plugin not remove existing conflict markings (jeremyevans)
|
714
|
-
|
715
|
-
* Deprecate cti_base_model, cti_key, and cti_model_map class methods in class_table_inheritance plugin (jeremyevans)
|
716
|
-
|
717
|
-
* Make Model.skip_auto_validations(:not_null) in the auto_validations plugin skip not null checks for columns with default values (jeremyevans)
|
718
|
-
|
719
|
-
* Make Database#copy_into in jdbc/postgresql adapter respect :server option (jeremyevans)
|
720
|
-
|
721
|
-
* Make #to_hash and #to_hash_groups handle options in the static_cache plugin, and add rename #to_hash to #as_hash (jeremyevans)
|
722
|
-
|
723
|
-
* Rename Dataset#to_hash to #as_hash, and add #to_hash as an alias, to allow undefing #to_hash to fix ruby calling it implicitly (jeremyevans) (#1375)
|
724
|
-
|
725
|
-
* Handle PG* constants deprecated in pg 0.21.0 in the postgres adapter (jeremyevans) (#1377, #1378)
|
726
|
-
|
727
|
-
* Support :association_pks_use_associated_table association option in association_pks plugin (jeremyevans)
|
728
|
-
|
729
|
-
* Make pg_hstore extension reset hstore conversion proc when running Database#reset_conversion_procs (jeremyevans)
|
730
|
-
|
731
|
-
* Fix incorrect SQL used for inserting into a CTI subclass sharing the primary table when using the :alias option (jeremyevans)
|
732
|
-
|
733
|
-
=== 4.47.0 (2017-06-01)
|
734
|
-
|
735
|
-
* Deprecate pg_typecast_on_load plugin, only useful on deprecated do and swift adapters (jeremyevans)
|
736
|
-
|
737
|
-
* Deprecate association_autoreloading and many_to_one_pk_lookup plugins, which were made the default model behavior in Sequel 4 (jeremyevans)
|
738
|
-
|
739
|
-
* Deprecate setting invalid datasets for models unless required_valid_table = false (jeremyevans)
|
740
|
-
|
741
|
-
* Make Model.require_valid_table = true not raise for datasets where Database#schema raises an error but Dataset#columns works (jeremyevans)
|
742
|
-
|
743
|
-
* Make Database#with_server in the server_block extension accept a second argument for a different read_only shard (jeremyevans) (#1355)
|
744
|
-
|
745
|
-
* Make schema_dumper extension handle Oracle 11g XE inclusion of not null in the db_type (StevenCregan, jeremyevans) (#1351)
|
746
|
-
|
747
|
-
* Add Model.default_association_type_options for changing default association options per association type (jeremyevans)
|
748
|
-
|
749
|
-
* Add :materialized option to Database#views on PostgreSQL to return materialized views (Blargel) (#1348)
|
750
|
-
|
751
|
-
* Make defaults_setter plugin inherit custom default values when subclassing (jeremyevans)
|
752
|
-
|
753
|
-
=== 4.46.0 (2017-05-01)
|
754
|
-
|
755
|
-
* Recognize additional disconnect error on MySQL (jeremyevans)
|
756
|
-
|
757
|
-
* Deconstantize dataset SQL generation, speeding up ruby 2.3+, slowing down earlier versions (jeremyevans)
|
758
|
-
|
759
|
-
* Deprecate calling Dataset#set_graph_aliases before Dataset#graph (jeremyevans)
|
760
|
-
|
761
|
-
* Don't swallow exception if there is an exception when rolling back a transaction when using :rollback=>:always option (jeremyevans)
|
762
|
-
|
763
|
-
* Deprecate passing 2 arguments to Database#alter_table (jeremyevans)
|
764
|
-
|
765
|
-
* Deprecate passing Schema::CreateTableGenerator instance as second argument to Database#create_table (jeremyevans)
|
766
|
-
|
767
|
-
* Deprecate Database::DatasetClass as a way for getting default dataset classes for datasets (jeremyevans)
|
768
|
-
|
769
|
-
* Deprecate SQLite pragma getting and setting methods (jeremyevans)
|
770
|
-
|
771
|
-
* Remove handling of EMULATED_FUNCTION_MAP from adapter dataset classes, overide Dataset#native_function_name instead (jeremyevans)
|
772
|
-
|
773
|
-
* Deprecate {Integer,Timestamp}Migrator::DEFAULT_SCHEMA_{COLUMN,TABLE} (jeremyevans)
|
774
|
-
|
775
|
-
* Deprecate Database#jdbc_* methods for jdbc/db2 adapter Database instances (jeremyevans)
|
776
|
-
|
777
|
-
* Remove addition of Database#jdbc_* to JDBC::Database in jdbc/db2 adapter (jeremyevans)
|
778
|
-
|
779
|
-
* Deprecate many internal Database and Dataset string/regexp constants in core and included adapters (jeremyevans)
|
780
|
-
|
781
|
-
* Remove use of Fixnum in sqlanywhere shared adapter (jeremyevans)
|
782
|
-
|
783
|
-
* Deprecate Sequel::Schema::Generator constant, use Sequel::Schema::CreateTableGenerator instead (jeremyevans)
|
784
|
-
|
785
|
-
* Deprecate Database#log_yield (jeremyevans)
|
786
|
-
|
787
|
-
* Deprecate the set_overrides extension (jeremyevans)
|
788
|
-
|
789
|
-
* If passing an empty array or hash and a block to a filtering method, ignore the array or hash and just use the block (jeremyevans)
|
790
|
-
|
791
|
-
* Deprecate ignoring explicit nil argument when there is no existing filter (jeremyevans)
|
792
|
-
|
793
|
-
* Deprecate ignoring explicit nil argument to filtering methods when passing a block (jeremyevans)
|
794
|
-
|
795
|
-
* Deprecate ignoring empty strings and other empty? arguments passed to the filtering methods without a block (jeremyevans)
|
796
|
-
|
797
|
-
* Deprecate calling filtering methods without an argument or a block (jeremyevans)
|
798
|
-
|
799
|
-
* Deprecate Sequel::VirtualRow#` to create literal SQL, use Sequel.lit instead (jeremyevans)
|
800
|
-
|
801
|
-
* Add auto_literal_strings extensions for treating plain strings passed to filtering/update methods as literal SQL (jeremyevans)
|
802
|
-
|
803
|
-
* Deprecate automatically treating plain strings passed to filtering/update methods as literal SQL (jeremyevans)
|
804
|
-
|
805
|
-
* Passing a PlaceholderLiteralString to a filtering method now uses parentheses around the expression (jeremyevans)
|
806
|
-
|
807
|
-
* Make Dataset#full_text_search work on Microsoft SQL Server when no_auto_literal_strings extension is used (jeremyevans)
|
808
|
-
|
809
|
-
* Fix Database#disconnect when using the single connection pool without an active connection (jeremyevans) (#1339)
|
810
|
-
|
811
|
-
* Handle conversion of datetimeoffset values when using the jdbc/sqlserver adapter in some configurations (iaddict, jeremyevans) (#1338)
|
812
|
-
|
813
|
-
* Fix conversion of some time values when using the jdbc/sqlserver adapter in some configurations (iaddict, jeremyevans) (#1337)
|
814
|
-
|
815
|
-
* Use microsecond precision for time values on Microsoft SQL Server, instead of millisecond precision (jeremyevans)
|
816
|
-
|
817
|
-
* Add Dataset#sqltime_precision private method for adapters to use different precision for Sequel::SQLTime than Time and Date (jeremyevans)
|
818
|
-
|
819
|
-
* Use utc timezone in Sequel::SQLTime.create if Sequel.application_timezone is :utc (jeremyevans) (#1336)
|
820
|
-
|
821
|
-
* Include migration filename in message about migration file without a single migration (jmettraux) (#1334)
|
822
|
-
|
823
|
-
* Deprecate conversion of - to _ in adapter schemes (jeremyevans)
|
824
|
-
|
825
|
-
* Don't quote function names that are SQL::Identifiers, unless SQL::Function#quoted is used (jeremyevans)
|
826
|
-
|
827
|
-
* Deprecate splitting virtual row method names (jeremyevans)
|
828
|
-
|
829
|
-
* Deprecate passing blocks to virtual row methods, move to virtual_row_method_block extension (jeremyevans)
|
830
|
-
|
831
|
-
* Deprecate Sequel::SQL::Expression#sql_literal and #lit (jeremyevans)
|
832
|
-
|
833
|
-
* Don't issue deprecation warnings on ruby 1.8.7, as Sequel 5 is dropping support for it (jeremyevans)
|
834
|
-
|
835
|
-
* Deprecate Sequel::BasicObject#remove_methods! (jeremyevans)
|
836
|
-
|
837
|
-
* Deprecate sequel/no_core_ext file (jeremyevans)
|
838
|
-
|
839
|
-
* Deprecate model dataset #insert_sql accepting model instances (jeremyevans)
|
840
|
-
|
841
|
-
* Deprecate model dataset #join_table and #graph accepting model classes (jeremyevans)
|
842
|
-
|
843
|
-
* Support :alias option to class_table_inheritance plugin, wrapping subclass datasets in a subquery to fix ambiguous column issues (jeremyevans)
|
844
|
-
|
845
|
-
* Deprecate Model.set_allowed_columns and Model#{set_all,set_only,update_all,update_only}, move to whitelist security plugin (jeremyevans)
|
846
|
-
|
847
|
-
* Do not raise MassAssignmentRestriction when setting nested attributes and using the :fields option, only check for fields given (jeremyevans)
|
848
|
-
|
849
|
-
* Do not add class methods for private methods definined in dataset_module (jeremyevans)
|
850
|
-
|
851
|
-
* Deprecate Model.def_dataset_method and Model.subset, move to def_dataset_method plugin (jeremyevans)
|
852
|
-
|
853
|
-
* Deprecate Model.finder and Model.prepared_finder, move to finder plugin (jeremyevans)
|
854
|
-
|
855
|
-
* Deprecate calling Model.db= on a model with a dataset (jeremyevans)
|
856
|
-
|
857
|
-
* Deprecate splitting symbols to look for qualified/aliased identifiers (e.g. :table__column) (jeremyevans)
|
858
|
-
|
859
|
-
* Allow optimized lookups and deletes for models using SQL::Identifier and SQL::QualifiedIdentifier values as the FROM table (jeremyevans)
|
860
|
-
|
861
|
-
=== 4.45.0 (2017-04-01)
|
862
|
-
|
863
|
-
* Correctly handle datasets with offsets but no limits used in compound datasets on MSSQL <2012 (jeremyevans)
|
864
|
-
|
865
|
-
* Correctly handle false values in the split_values plugin (bananarne) (#1333)
|
866
|
-
|
867
|
-
* Deprecate Dataset#dup/clone and Model.dup/clone (jeremyevans)
|
868
|
-
|
869
|
-
* Deprecate the schema and scissors plugins (jeremyevans)
|
870
|
-
|
871
|
-
* Deprecate Model.{lazy_attributes,nested_attributes,composition,serialization}_module accessors (jeremyevans)
|
872
|
-
|
873
|
-
* Deprecate Database#database_name on MySQL (jeremyevans)
|
874
|
-
|
875
|
-
* Deprecate Database#use on MySQL (jeremyevans)
|
876
|
-
|
877
|
-
* Make pg_hstore extension no longer update PG_NAMED_TYPES (jeremyevans)
|
878
|
-
|
879
|
-
* Deprecate Sequel::PG_NAMED_TYPES (jeremyevans)
|
880
|
-
|
881
|
-
* Add columns_updated plugin for making updated columns hash available in after_update and after_save hooks (jeremyevans)
|
882
|
-
|
883
|
-
* Deprecate accessing @columns_updated directly in model after_update and after_save hooks (jeremyevans)
|
884
|
-
|
885
|
-
* Deprecate Database#{add,remove}_servers when not using a sharded connection pool (jeremyevans)
|
886
|
-
|
887
|
-
* Deprecate Database#each_server (jeremyevans)
|
888
|
-
|
889
|
-
* Make Model#_valid? private method accept only an options hash (jeremyevans)
|
890
|
-
|
891
|
-
* Deprecate returning false from model before hooks to cancel the action, use Model#cancel_action (jeremyevans)
|
892
|
-
|
893
|
-
* Handle Model#cancel_action correctly in before hooks when Model#valid? is called (jeremyevans)
|
894
|
-
|
895
|
-
* Deprecate Sequel::BeforeHookFailed (jeremyevans)
|
896
|
-
|
897
|
-
* Deprecate passing multiple arguments as filter arguments when not using a conditions specifier (jeremyevans)
|
898
|
-
|
899
|
-
* Deprecate passing Procs as filter arguments, require they be passed as blocks (jeremyevans)
|
900
|
-
|
901
|
-
* Deprecate Sequel::Error::* exception class aliases (jeremyevans)
|
902
|
-
|
903
|
-
* Deprecate prepared_statements_associations and prepared_statements_with_pk plugins (jeremyevans)
|
904
|
-
|
905
|
-
* Deprecate Sequel::Unbinder, Sequel::UnbindDuplicate, and Dataset#unbind (jeremyevans)
|
906
|
-
|
907
|
-
* Deprecating calling Sequel::Qualifier with two arguments (jeremyevans)
|
908
|
-
|
909
|
-
* Add validation_contexts plugin for supporting custom contexts when validating (jeremyevans)
|
910
|
-
|
911
|
-
* Deprecate Sequel::Database.single_threaded singleton accessor (jeremyevans)
|
912
|
-
|
913
|
-
* Deprecate treating unrecognized prepared statement type as :select (jeremyevans)
|
914
|
-
|
915
|
-
* Deprecate Sequel.identifier_{in,out}put_method= and .quote_identifiers= singleton setters (jeremyevans)
|
916
|
-
|
917
|
-
* Deprecate Sequel::Database.identifier_{in,out}put_method and .quote_identifiers singleton accessors (jeremyevans)
|
918
|
-
|
919
|
-
* Deprecate loading the identifier_mangling by default, require it be loaded explicitly if needed (jeremyevans)
|
920
|
-
|
921
|
-
* Make Database#dump_{table_schema,schema_migration} in schema_dumper extension support :schema option (dadario) (#1328)
|
922
|
-
|
923
|
-
* Make Dataset#delete respect an existing limit on Microsoft SQL Server (jeremyevans)
|
924
|
-
|
925
|
-
* Add Dataset#skip_limit_check to mark a dataset as skipping the limit/offset check for updates and deletes (jeremyevans)
|
926
|
-
|
927
|
-
* Deprecate calling Dataset#{update/delete/truncate} on datasets with limits or offsets unless the database supports it (jeremyevans)
|
928
|
-
|
929
|
-
* Add deprecation message for using association_pks setter method with :delay_pks=>true association option (jeremyevans)
|
930
|
-
|
931
|
-
* Add deprecation message for using association_pks setter method without :delay_pks association option (jeremyevans)
|
932
|
-
|
933
|
-
* Deprecate having duplicate column names in subclass tables when using the class_table_inheritance plugin (jeremyevans)
|
934
|
-
|
935
|
-
* Deprecate do (DataObjects), swift, and jdbc/as400 adapters (jeremyevans)
|
936
|
-
|
937
|
-
* Deprecate support for Cubrid, Firebird, Informix, and Progress databases (jeremyevans)
|
938
|
-
|
939
|
-
* The :proxy_argument option passed to association_proxies plugin block is now an empty hash if no arguments are passed to the association method (jeremyevans)
|
940
|
-
|
941
|
-
* Deprecate passing non-hash arguments to association methods (jeremyevans)
|
942
|
-
|
943
|
-
* Deprecate passing multiple arguments to association methods (jeremyevans)
|
944
|
-
|
945
|
-
* Deprecate model transaction hook methods (jeremyevans)
|
946
|
-
|
947
|
-
* Drop support for pg <0.8.0 in the postgres adapter (jeremyevans)
|
948
|
-
|
949
|
-
* Deprecate passing a block to Database#from (jeremyevans)
|
950
|
-
|
951
|
-
* Deprecate Sequel::Model::ANONYMOUS_MODEL_CLASSES{,_MUTEX} (jeremyevans)
|
952
|
-
|
953
|
-
* Deprecate Sequel.cache_anonymous_models and Sequel.cache_anonymous_models= (jeremyevans)
|
954
|
-
|
955
|
-
* Automatically use from_self when using a dataset as part of a compound if it has an offset but no limit (jeremyevans)
|
956
|
-
|
957
|
-
* Drop order on existing datasets when using Dataset#union/intersect/except on Microsoft SQL Server unless a limit or offset is used (jeremyevans)
|
958
|
-
|
959
|
-
* Deprecate dataset mutation (jeremyevans)
|
960
|
-
|
961
|
-
* Handle dumping of autoincrementing 64-bit integer primary key columns correctly when using :same_db option in the schema dumper (jeremyevans) (#1324)
|
962
|
-
|
963
|
-
* Add Model.dataset_module_class accessor, allowing plugins to support custom behavior in dataset_module blocks (jeremyevans)
|
964
|
-
|
965
|
-
* Make ORDER BY come after UNION/INTERSECT/EXCEPT on Microsoft SQL Server and SQLAnywhere (jeremyevans)
|
966
|
-
|
967
|
-
* Make Database#indexes on MySQL handle qualified identifiers (jeremyevans) (#1316)
|
968
|
-
|
969
|
-
* Add oracle support to the odbc adapter (samuel02) (#1315)
|
970
|
-
|
971
|
-
=== 4.44.0 (2017-03-01)
|
972
|
-
|
973
|
-
* Add where_all, where_each, where_single_value model dataset methods, optimized for frozen datasets (jeremyevans)
|
974
|
-
|
975
|
-
* Add eager method to dataset_module (jeremyevans)
|
976
|
-
|
977
|
-
* Add implicit_subquery extension, for implicitly using a subquery for datasets using raw SQL when calling dataset methods that modify SQL (jeremyevans)
|
978
|
-
|
979
|
-
* Make Dataset#from_self keep the columns from the current dataset if present (jeremyevans)
|
980
|
-
|
981
|
-
* Add implicit_subquery extension, implicitly using subqueries for dataset methods if the current dataset uses raw SQL (jeremyevans)
|
982
|
-
|
983
|
-
* Make SQL::ValueList#inspect show that it is a value list (jeremyevans)
|
984
|
-
|
985
|
-
* Make LiteralString#inspect show that it is a literal string (jeremyevans)
|
986
|
-
|
987
|
-
* Make Model::Associations::AssociationReflection#inspect show reflection class and guess at association definition line (jeremyevans)
|
988
|
-
|
989
|
-
* Make SQLTime#inspect show it is an SQLTime instance, and only the time component (jeremyevans)
|
990
|
-
|
991
|
-
* Make SQL::Blob#inspect show that it is a blob, the number of bytes, and some or all of the content (jeremyevans)
|
992
|
-
|
993
|
-
* Make plugins not modify the constant namespace for the model class that uses them (jeremyevans)
|
994
|
-
|
995
|
-
* Do not modify encoding of SQL::Blob instances in force_encoding plugin (jeremyevans)
|
996
|
-
|
997
|
-
* Add Model.freeze_descendents to subclasses plugin, for easier finalizing associations/freezing of descendent classes (jeremyevans)
|
998
|
-
|
999
|
-
* Add Model.finalize_associations method for finalizing associations, speeding up some association reflections methods almost 10x (jeremyevans)
|
1000
|
-
|
1001
|
-
* Implement Model.freeze such that it can be used in production (jeremyevans)
|
1002
|
-
|
1003
|
-
* Recognize another disconnect error in the jdbc/as400 adapter (perlun) (#1300)
|
1004
|
-
|
1005
|
-
* Correctly handle conversion of false values when typecasting PostgreSQL arrays (mistoo) (#1299)
|
1006
|
-
|
1007
|
-
* Raise error if the postgres adapter attempts to load an incompatible version of sequel_pg (mahlonsmith) (#1298)
|
1008
|
-
|
1009
|
-
* Fix jdbc adapter so basic_type_convertor_map is not shared between instances, work with Database#freeze (jeremyevans)
|
1010
|
-
|
1011
|
-
=== 4.43.0 (2017-02-01)
|
1012
|
-
|
1013
|
-
* Make jdbc/postgresql adapter work if pg_hstore extension is loaded first (jeremyevans) (#1296)
|
1014
|
-
|
1015
|
-
* Make prepared_statements_associations plugin work correctly on some instance specific associations (jeremyevans)
|
1016
|
-
|
1017
|
-
* Make prepared_statements plugin not use prepared statements in cases where it is probably slower (jeremyevans)
|
1018
|
-
|
1019
|
-
* Optimize Model#refresh similar to Model.with_pk (jeremyevans)
|
1020
|
-
|
1021
|
-
* Make Database#extension not attempt to load the same extension more than once (jeremyevans)
|
1022
|
-
|
1023
|
-
* Implement Database#freeze such that it can be used in production (jeremyevans)
|
1024
|
-
|
1025
|
-
* Freeze enum_labels in the pg_enum extension (jeremyevans)
|
1026
|
-
|
1027
|
-
* Handle Database#type_supported? thread-safely on PostgreSQL (jeremyevans)
|
1028
|
-
|
1029
|
-
* Handle primary_key_sequences thread-safely on Oracle (jeremyevans)
|
1030
|
-
|
1031
|
-
* Handle sharding better when using mysql2 native prepared statements (jeremyevans)
|
1032
|
-
|
1033
|
-
* Use thread-safe incrementor for mock adapter autoid handling (jeremyevans)
|
1034
|
-
|
1035
|
-
* Make Model#freeze not freeze associations hash until after validating the model instance (jeremyevans)
|
1036
|
-
|
1037
|
-
* Make prepared_statements_associations plugin work correctly when model object explicitly specifies server to use when also using sharding plugin (jeremyevans)
|
1038
|
-
|
1039
|
-
* Make prepared_statements_with_pk plugin work correctly when dataset explicitly specifies server to use (jeremyevans)
|
1040
|
-
|
1041
|
-
* Make prepared_statements plugin work correctly when model object explicitly specifies server to use (jeremyevans)
|
1042
|
-
|
1043
|
-
* Make dataset_module inherited to subclasses when using the single_table_inheritance plugin (jeremyevans) (#1284)
|
1044
|
-
|
1045
|
-
* Support use of SQLite result codes in the jdbc-sqlite adapter, if the jdbc sqlite driver supports them (flash-gordon, jeremyevans) (#1283)
|
1046
|
-
|
1047
|
-
* Make timestamp migrator handle key length limitations when using MySQL with InnoDB engine and utf8mb4 charset default (jeremyevans) (#1282)
|
1048
|
-
|
1049
|
-
=== 4.42.0 (2017-01-01)
|
1050
|
-
|
1051
|
-
* Handle eager load callbacks correctly for one_to_one associations with orders or offsets when window functions are not supported (jeremyevans)
|
1052
|
-
|
1053
|
-
* Raise Sequel::Error if using an :eager_limit dataset option when eager loading a singular association (jeremyevans)
|
1054
|
-
|
1055
|
-
* Replace internal uses of Dataset#select_more with #select_append to save a method call (jeremyevans)
|
1056
|
-
|
1057
|
-
* Make Dataset#order_append the primary method, and #order_more the alias, for similarity to #select_append and #select_more (jeremyevans)
|
1058
|
-
|
1059
|
-
* Replace internal uses of Dataset#filter with #where to save a method call (jeremyevans)
|
1060
|
-
|
1061
|
-
* Do not set :auto_increment in the schema information for integer columns that are part of a composite primary key on SQLite (jeremyevans)
|
1062
|
-
|
1063
|
-
* Use autoincrement setting on integer primary key columns when emulating table modification methods on SQLite (thenrio, jeremyevans) (#1277, #1278)
|
1064
|
-
|
1065
|
-
* Make the pagination extension work on frozen datasets (jeremyevans)
|
1066
|
-
|
1067
|
-
* Make Dataset#server work for frozen model datasets using the sharding plugin (jeremyevans)
|
1068
|
-
|
1069
|
-
* Make Dataset#nullify in the null_dataset extension work on frozen datasets (jeremyevans)
|
1070
|
-
|
1071
|
-
* Make Model#set_server work when using a frozen model dataset (jeremyevans)
|
1072
|
-
|
1073
|
-
* Make Dataset#ungraphed work on a frozen model dataset (jeremyevans)
|
1074
|
-
|
1075
|
-
* Add Dataset#with_{autoid,fetch,numrows} to the mock adapter, returning cloned datasets with the setting changed (jeremyevans)
|
1076
|
-
|
1077
|
-
* Make looser_typecasting extension handle the strict BigDecimal parsing introduced in ruby 2.4rc1 (jeremyevans)
|
1078
|
-
|
1079
|
-
* Make Database#{db,opts}= in the sequel_3_dataset_methods extension raise for frozen datasets (jeremyevans)
|
1080
|
-
|
1081
|
-
* Speed up repeated calls to Dataset#{interval,range} for frozen datasets using a cached placeholder literalizer (jeremyevans)
|
1082
|
-
|
1083
|
-
* Speed up repeated calls to Dataset#get with a single argument for frozen datasets using a cached placeholder literalizer (jeremyevans)
|
1084
|
-
|
1085
|
-
* Speed up repeated calls to Dataset#{first,last} with arguments/blocks for frozen datasets using a cached placeholder literalizer (jeremyevans)
|
1086
|
-
|
1087
|
-
* Speed up repeated calls to Dataset#{avg,min,max,sum} for frozen datasets using a cached placeholder literalizer (jeremyevans)
|
1088
|
-
|
1089
|
-
* Cache dataset returned by Dataset#skip_locked for frozen datasets (jeremyevans)
|
1090
|
-
|
1091
|
-
* Cache dataset returned by Dataset#for_update for frozen datasets (jeremyevans)
|
1092
|
-
|
1093
|
-
* Cache dataset returned by Dataset#un{filtered,grouped,limited,ordered} for frozen datasets (jeremyevans)
|
1094
|
-
|
1095
|
-
* Cache dataset returned by Dataset#reverse (no args) for frozen datasets (jeremyevans)
|
1096
|
-
|
1097
|
-
* Cache dataset returned by Dataset#invert for frozen datasets (jeremyevans)
|
1098
|
-
|
1099
|
-
* Speed up repeated calls to Dataset#count with an argument or block for frozen datasets using a cached placeholder literalizer (jeremyevans)
|
1100
|
-
|
1101
|
-
* Using :on_duplicate_columns=>:warn Database option with duplicate_columns_handler now prepends file/line to the warning message (jeremyevans)
|
1102
|
-
|
1103
|
-
* Move identifier mangling code to identifier_mangling extension, load by default unless using :identifier_mangling=>false Database option (jeremyevans)
|
1104
|
-
|
1105
|
-
* Allow Dataset#with_extend to accept a block and create a module with that block that the object is extended with (jeremyevans)
|
1106
|
-
|
1107
|
-
* Speed up repeated calls to with_pk on the same frozen model dataset using a cached placeholder literalizer (jeremyevans)
|
1108
|
-
|
1109
|
-
* Add dataset_module methods such as select and order that define dataset methods which support caching for frozen datasets (jeremyevans)
|
1110
|
-
|
1111
|
-
* Cache subset datasets if they don't use blocks or procs for frozen model datasets (jeremyevans)
|
1112
|
-
|
1113
|
-
* Cache intermediate dataset used in Dataset#{last,paged_each} for frozen model datasets without an order (jeremyevans)
|
1114
|
-
|
1115
|
-
* Cache dataset returned by Dataset#naked for frozen datasets (jeremyevans)
|
1116
|
-
|
1117
|
-
* Cache intermediate dataset used in Dataset#last (no args) for frozen datasets (jeremyevans)
|
1118
|
-
|
1119
|
-
* Cache intermediate dataset used in Dataset#first (no args) and #single_record for frozen datasets (jeremyevans)
|
1120
|
-
|
1121
|
-
* Cache intermediate dataset used in Dataset#empty? for frozen datasets (jeremyevans)
|
1122
|
-
|
1123
|
-
* Cache intermediate dataset used in Dataset#count (no args) for frozen datasets (jeremyevans)
|
1124
|
-
|
1125
|
-
* Warn if :conditions option may be unexpectedly ignored during eager_graph/association_join (jeremyevans) (#1272)
|
1126
|
-
|
1127
|
-
* Cache SELECT and DELETE SQL for most frozen datasets (jeremyevans)
|
1128
|
-
|
1129
|
-
* Freeze most SQL::Expression objects and internal state by default (jeremyevans)
|
1130
|
-
|
1131
|
-
* Freeze Dataset::PlaceholderLiteralizer and Dataset::PlaceholderLiteralizer::Argument instances (jeremyevans)
|
1132
|
-
|
1133
|
-
* Freeze most dataset opts values to avoid unintentional modification (jeremyevans)
|
1134
|
-
|
1135
|
-
* Add Dataset#with_convert_smallint_to_bool on DB2, returning a clone with convert_smallint_to_bool set (jeremyevans)
|
1136
|
-
|
1137
|
-
* Make Dataset#freeze actually freeze the dataset on ruby 2.4+ (jeremyevans)
|
1138
|
-
|
1139
|
-
* Avoid using instance variables other than @opts for dataset data storage (jeremyevans)
|
1140
|
-
|
1141
|
-
* Add freeze_datasets extension, making all datasets for a given Database frozen (jeremyevans)
|
1142
|
-
|
1143
|
-
* Refactor prepared statement internals, using opts instead of instance variables (jeremyevans)
|
1144
|
-
|
1145
|
-
* Model.set_dataset now operates on a clone of the dataset given instead of modifying it, so it works with frozen datasets (jeremyevans)
|
1146
|
-
|
1147
|
-
=== 4.41.0 (2016-12-01)
|
1148
|
-
|
1149
|
-
* Add Dataset#with_mssql_unicode_strings on Microsoft SQL Server, returning a clone with mssql_unicode_strings set (jeremyevans)
|
1150
|
-
|
1151
|
-
* Add Dataset#with_identifier_output_method, returning a clone with identifier_output_method set (jeremyevans)
|
1152
|
-
|
1153
|
-
* Add Dataset#with_identifier_input_method, returning a clone with identifier_input_method set (jeremyevans)
|
1154
|
-
|
1155
|
-
* Add Dataset#with_quote_identifiers, returning a clone with quote_identifiers set (jeremyevans)
|
1156
|
-
|
1157
|
-
* Add Dataset#with_extend, returning a clone extended with given modules (jeremyevans)
|
1158
|
-
|
1159
|
-
* Add Dataset#with_row_proc, returning a clone with row_proc set (jeremyevans)
|
1160
|
-
|
1161
|
-
* Support use of SQL::AliasedExpressions as Model#to_json :include option keys in the json_serializer plugin (sensadrome) (#1269)
|
1162
|
-
|
1163
|
-
* Major improvements to type conversion in the ado adapter (vais, jeremyevans) (#1265)
|
1164
|
-
|
1165
|
-
* Avoid memory leak in ado adapter by closing result sets after yielding them (vais, jeremyevans) (#1259)
|
1166
|
-
|
1167
|
-
* Fix hook_class_methods plugin handling of commit hooks (jeremyevans)
|
1168
|
-
|
1169
|
-
* Make association dataset method correctly handle cases where key fields are nil (jeremyevans)
|
1170
|
-
|
1171
|
-
* Handle pure java exceptions that don't support message= when reraising the exception in the jdbc adapter (jeremyevans)
|
1172
|
-
|
1173
|
-
* Add support for :offset_strategy Database option on DB2, with :limit_offset and :offset_fetch values, to disable OFFSET emulation (#1254) (jeremyevans)
|
1174
|
-
|
1175
|
-
* Remove deprecated support for using Bignum class as a generic type (jeremyevans)
|
1176
|
-
|
1177
|
-
=== 4.40.0 (2016-10-28)
|
1178
|
-
|
1179
|
-
* Make column_select plugin not raise an exception if the model's table does not exist (jeremyevans)
|
1180
|
-
|
1181
|
-
* Make dataset_associations plugin correctly handle (many|one)_through_many associations with single join table (jeremyevans) (#1253)
|
1182
|
-
|
1183
|
-
* Add s extension, with adds Sequel::S module that includes private #S method for calling Sequel.expr, including use as refinement (jeremyevans)
|
1184
|
-
|
1185
|
-
* Add symbol_as and symbol_as_refinement extensions so that :column.as(:alias) is treated as Sequel.as(:column, :alias) (jeremyevans)
|
1186
|
-
|
1187
|
-
* Add symbol_aref and symbol_aref_refinement extensions so that :table[:column] is treated as Sequel.qualify(:table, :column) (jeremyevans)
|
1188
|
-
|
1189
|
-
* Add Sequel.split_symbols=, to support the disabling of splitting symbols with double/triple underscores (jeremyevans)
|
1190
|
-
|
1191
|
-
* Make SQL::QualifiedIdentifier convert SQL::Identifier arguments to strings, fixing Sequel[:schema][:table] usage in schema methods (jeremyevans)
|
1192
|
-
|
1193
|
-
* Do not attempt to combine non-associative operators (jeremyevans) (#1246)
|
1194
|
-
|
1195
|
-
* Automatically add NOT NULL to columns when adding primary keys if the database doesn't handle it (jeremyevans)
|
1196
|
-
|
1197
|
-
* Make prepared_statements plugin correctly handle lookup on joined datasets (jeremyevans) (#1244)
|
1198
|
-
|
1199
|
-
* Make Database#tables with :qualify=>true option handle table names with double underscores correctly (jeremyevans) (#1241)
|
1200
|
-
|
1201
|
-
* Add SQL::Identifier#[] and SQL::QualifiedIdentifier#[] for creating qualified identifiers (jeremyevans)
|
1202
|
-
|
1203
|
-
* Add support for Dataset#insert_conflict :conflict_where option, for a predicate to use in ON CONFLICT clauses (chanks) (#1240)
|
1204
|
-
|
1205
|
-
* Freeze Dataset::NON_SQL_OPTIONS, add private Dataset#non_sql_options, fixing thread safety issues during require (jeremyevans)
|
1206
|
-
|
1207
|
-
* Make the callable returned by Database#rollback_checker thread safe (jeremyevans)
|
1208
|
-
|
1209
|
-
* Make lazy_attributes and dataset_associations plugins work if insert_returning_select plugin is loaded before on model with no dataset (jeremyevans)
|
1210
|
-
|
1211
|
-
=== 4.39.0 (2016-10-01)
|
1212
|
-
|
1213
|
-
* Make active_model plugin use rollback_checker instead of after_rollback hook (jeremyevans)
|
1214
|
-
|
1215
|
-
* Add Database#rollback_checker, which returns a proc that returns whether the in progress transaction is rolled back (jeremyevans)
|
1216
|
-
|
1217
|
-
* Add Sequel::Database.set_shared_adapter_scheme to allow external adapters to support the mock adapter (jeremyevans)
|
1218
|
-
|
1219
|
-
* Make hook_class_methods plugin not use after commit/rollback model hooks (jeremyevans)
|
1220
|
-
|
1221
|
-
* Support add_column :after and :first options on MySQL (AnthonyBobsin, jeremyevans) (#1234)
|
1222
|
-
|
1223
|
-
* Support ActiveSupport 5 in pg_interval extension when weeks/hours are used in ActiveSupport::Duration objects (chanks) (#1233)
|
1224
|
-
|
1225
|
-
* Support IntegerMigrator :relative option, for running only the specified number of migrations up or down (jeremyevans)
|
1226
|
-
|
1227
|
-
* Make the touch plugin also touch associations on create in addition to update and delete (jeremyevans)
|
1228
|
-
|
1229
|
-
* Add :allow_manual_update timestamps plugin option for not overriding a manually set update timestamp (jeremyevans)
|
1230
|
-
|
1231
|
-
* Add Sequel.[] as an alias to Sequel.expr, for easier expression creation (jeremyevans)
|
1232
|
-
|
1233
|
-
* Add PostgreSQL full_text_search :to_tsquery=>:phrase option, for using PostgreSQL 9.6+ full text search phrase searching (jeremyevans)
|
1234
|
-
|
1235
|
-
* Add JSONBOp#insert in pg_json_ops extension, for jsonb_insert support on PostgreSQL 9.6+ (jeremyevans)
|
1236
|
-
|
1237
|
-
* Support add_column :if_not_exists option on PostgreSQL 9.6+ (jeremyevans)
|
1238
|
-
|
1239
|
-
=== 4.38.0 (2016-09-01)
|
1240
|
-
|
1241
|
-
* Support :driver_options option when using the postgres adapter with pg driver (jeremyevans)
|
1242
|
-
|
1243
|
-
* Don't use after commit/rollback database hooks if the model instance methods are not overridden (jeremyevans)
|
1244
|
-
|
1245
|
-
* Add SQL::NumericMethods#coerce, allowing code such as Sequel.expr{1 - x} (jeremyevans)
|
1246
|
-
|
1247
|
-
* Support ** operator for exponentiation on expressions, similar to +, -, *, and / (jeremyevans)
|
1248
|
-
|
1249
|
-
* Add Sequel::SQLTime.date= to set the date used for SQLTime instances (jeremyevans)
|
1250
|
-
|
1251
|
-
=== 4.37.0 (2016-08-01)
|
1252
|
-
|
1253
|
-
* Add support for regular expression matching on Oracle 10g+ using REGEXP_LIKE (johndcaldwell) (#1221)
|
1254
|
-
|
1255
|
-
* Recognize an additional disconnect error in the postgres adapter (jeremyevans)
|
1256
|
-
|
1257
|
-
* Make connection pool remove connections for disconnect errors not raised as DatabaseDisconnectError (jeremyevans)
|
1258
|
-
|
1259
|
-
* Support mysql2 0.4+ native prepared statements and bound variables (jeremyevans)
|
1260
|
-
|
1261
|
-
* Add Database#values for VALUES support on SQLite 3.8.3+ (jeremyevans)
|
1262
|
-
|
1263
|
-
* Support create_view :columns option on SQLite 3.9.0+ (jeremyevans)
|
1264
|
-
|
1265
|
-
* Make migration reverser handle alter_table add_constraint using a hash as the first argument (soupmatt) (#1215)
|
1266
|
-
|
1267
|
-
* Make ASTTransformer handle Sequel.extract (jeremyevans) (#1213)
|
1268
|
-
|
1269
|
-
=== 4.36.0 (2016-07-01)
|
1270
|
-
|
1271
|
-
* Deprecate use of Bignum class as generic type, since the behavior will change in ruby 2.4 (jeremyevans)
|
1272
|
-
|
1273
|
-
* Don't hold connection pool mutex while disconnecting connections (jeremyevans)
|
1274
|
-
|
1275
|
-
* Don't hold references to disconnected connections in the connection_validator extension (jeremyevans)
|
1276
|
-
|
1277
|
-
* Don't overwrite existing connection_validation_timeout when loading connection_validator extension multiple times (jeremyevans)
|
1278
|
-
|
1279
|
-
* Add connection_expiration extension, for automatically removing connections open for too long (pdrakeweb) (#1208, #1209)
|
1280
|
-
|
1281
|
-
* Handle disconnection errors raised during string literalization in mysql2 and postgres adapters (jeremyevans)
|
1282
|
-
|
1283
|
-
* Add string_agg extension for aggregate string concatenation support on many databases (jeremyevans)
|
1284
|
-
|
1285
|
-
* Add SQL::Function#order for ordered aggregate functions (jeremyevans)
|
1286
|
-
|
1287
|
-
* Support operator validation in constraint_validations for <, <=, >, and >= operators with string and integer arguments (jeremyevans)
|
1288
|
-
|
1289
|
-
* Make validates_operator validation consider nil values invalid unless :allow_nil or similar option is used (jeremyevans)
|
1290
|
-
|
1291
|
-
* Close cursors for non-SELECT queries in the oracle adapter after execution, instead of waiting until GC (jeremyevans) (#1203)
|
1292
|
-
|
1293
|
-
* Add :class_namespace association option for setting default namespace for :class option given as symbol/string (jeremyevans)
|
1294
|
-
|
1295
|
-
* Add Sequel::Model.cache_anonymous_models accessor for changing caching on a per-model basis (jeremyevans)
|
1296
|
-
|
1297
|
-
* Add Sequel::Model.def_Model for adding a Model() method to a module, for easier use of namespaced models (jeremyevans)
|
1298
|
-
|
1299
|
-
* Add Sequel::Model::Model() for creating subclasses of Sequel::Model subclasses, instead of just Sequel::Model itself (jeremyevans)
|
1300
|
-
|
1301
|
-
=== 4.35.0 (2016-06-01)
|
1302
|
-
|
1303
|
-
* Add :headline option to PostgreSQL Dataset#full_text_search for adding an extract of the matched text to the SELECT list (jeremyevans)
|
1304
|
-
|
1305
|
-
* Make :rollback=>:always inside a transaction use a savepoint automatically if supported (jeremyevans) (#1193)
|
1306
|
-
|
1307
|
-
* Recognize bool type as boolean in the schema dumper (jeremyevans) (#1192)
|
1308
|
-
|
1309
|
-
* Make Dataset#to_hash and #to_hash_groups work correctly for model datasets doing eager loading (jeremyevans)
|
1310
|
-
|
1311
|
-
* Make delay_add_association plugin handle hashes and primary keys passed to add_* association methods (jeremyevans) (#1187)
|
1312
|
-
|
1313
|
-
* Treat :Bignum as a generic type, to support 64-bit integers on ruby 2.4+, where Bignum == Integer (jeremyevans)
|
1314
|
-
|
1315
|
-
* Add server_logging extension for including server/shard information when logging queries (jeremyevans)
|
1316
|
-
|
1317
|
-
* Add Database#log_connection_info, for including connection information when logging queries (jeremyevans)
|
1318
|
-
|
1319
|
-
* Add Dataset#skip_locked for skipping locked rows on PostgreSQL 9.5+, MSSQL, and Oracle (jeremyevans)
|
1320
|
-
|
1321
|
-
* Allow Sequel::Model#lock! to accept an optional lock style (petedmarsh) (#1183)
|
1322
|
-
|
1323
|
-
* Add sql_comments extension for setting SQL comments on queries (jeremyevans)
|
1324
|
-
|
1325
|
-
* Make Postgres::PGRange#cover? handle empty, unbounded, and exclusive beginning ranges (jeremyevans)
|
1326
|
-
|
1327
|
-
* Fix frozen string literal issues on JRuby 9.1.0.0 (jeremyevans)
|
1328
|
-
|
1329
|
-
* Allow json_serializer :include option with cascaded values to work correctly when used with association_proxies (jeremyevans)
|
1330
|
-
|
1331
|
-
=== 4.34.0 (2016-05-01)
|
1332
|
-
|
1333
|
-
* Add support for :dataset_associations_join association option to dataset_associations plugin, for making resulting datasets have appropriate joins (jeremyevans)
|
1334
|
-
|
1335
|
-
* Log server connection was attempted to in PoolTimeout exception messages in sharded connection pool (jeremyevans)
|
1336
|
-
|
1337
|
-
* Log Database :name option in PoolTimeout exception messages (bigkevmcd, jeremyevans) (#1176)
|
1338
|
-
|
1339
|
-
* Add duplicate_columns_handler extension, for raising or warning if a dataset returns multiple columns with the same name (TSMMark, jeremyevans) (#1175)
|
1340
|
-
|
1341
|
-
* Support registering per-Database custom range types in the pg_range extension (steveh) (#1174)
|
1342
|
-
|
1343
|
-
* Support :preconnect=>:concurrently Database option for preconnecting in separate threads (kch, jeremyevans) (#1172)
|
1344
|
-
|
1345
|
-
* Make prepared_statements_safe plugin work correctly with CURRENT_DATE/CURRENT_TIMESTAMP defaults (jeremyevans) (#1168)
|
1346
|
-
|
1347
|
-
* Add validates_operator validation helper (petedmarsh) (#1170)
|
1348
|
-
|
1349
|
-
* Recognize additional unique constraint violation on Microsoft SQL Server (jeremyevans)
|
1350
|
-
|
1351
|
-
* Add :hash option to Dataset#(select|to)_hash(_groups)? methods for choosing object to populate (mwpastore) (#1167)
|
1352
|
-
|
1353
|
-
=== 4.33.0 (2016-04-01)
|
1354
|
-
|
1355
|
-
* Handle arbitrary objects passed as arguments to the association method (jeremyevans) (#1166)
|
1356
|
-
|
1357
|
-
* Handle array with multiple columns as Dataset#insert_conflict :target value on PostgreSQL (chanks) (#1165)
|
1358
|
-
|
1359
|
-
* Add Database#transaction :savepoint=>:only option, for only creating a savepoint if already inside a transaction (jeremyevans)
|
1360
|
-
|
1361
|
-
* Make Database#sequence_for_table on Oracle handle cases where the schema for a table cannot be determined (jeremyevans)
|
1362
|
-
|
1363
|
-
* The boolean_readers, boolean_subsets, and class_table_inheritance plugins no longer do blind rescues (jeremyevans) (#1162)
|
1364
|
-
|
1365
|
-
* Add Model.require_valid_table setting, if set to true doesn't swallow any errors for invalid tables (jeremyevans)
|
1366
|
-
|
1367
|
-
* Creating model classes inside a transaction when the table doesn't exist no longer rolls back the transaction on PostgreSQL (jeremyevans) (#1160)
|
1368
|
-
|
1369
|
-
* Sequel::Model no longer swallows many errors when subclassing or setting datasets (jeremyevans) (#1160)
|
1370
|
-
|
1371
|
-
* Handle altering column NULL settings for varchar(max) and text columns on MSSQL (Ilja Resch)
|
1372
|
-
|
1373
|
-
* Remove Sequel.firebird and Sequel.informix adapter methods (jeremyevans)
|
1374
|
-
|
1375
|
-
* Make graph_each extension handle result set splitting when using Dataset#first (jeremyevans)
|
1376
|
-
|
1377
|
-
* Allow raising Sequel::ValidationFailed and Sequel::HookFailed without an argument (jeremyevans)
|
1378
|
-
|
1379
|
-
* Allow schema_dumper to handle :qualify=>true option on PostgreSQL (jeremyevans)
|
1380
|
-
|
1381
|
-
* Allow foreign_key schema method to handle SQL::Identifier and SQL::QualifiedIdentifier as 2nd argument (jeremyevans)
|
1382
|
-
|
1383
|
-
=== 4.32.0 (2016-03-01)
|
1384
|
-
|
1385
|
-
* Use mutex for synchronizing access to association reflection cache on MRI (jeremyevans)
|
1386
|
-
|
1387
|
-
* Add Dataset#delete_from on MySQL, allowing deletions from multiple tables in a single query (jeremyevans) (#1146)
|
1388
|
-
|
1389
|
-
* Add no_auto_literal_strings extension, which makes SQL injection vulnerabilities less likely (jeremyevans)
|
1390
|
-
|
1391
|
-
* Add Model.default_association_options, for setting option defaults for all future associations (jeremyevans)
|
1392
|
-
|
1393
|
-
* Support :association_pks_nil association option in association_pks setter for determining how to handle nil (jeremyevans)
|
1394
|
-
|
1395
|
-
* Make association_pks setter handle empty array correctly when :delay_pks is set (jeremyevans)
|
1396
|
-
|
1397
|
-
* Add a setter method for one_through_one associations (jeremyevans)
|
1398
|
-
|
1399
|
-
* Include :remarks entry in JDBC schema parsing output, containing comments on the column (olleolleolle) (#1143)
|
1400
|
-
|
1401
|
-
* Support :eager_reload and :eager options to associations in tactical_eager_loading plugin (jeremyevans)
|
1402
|
-
|
1403
|
-
* Make tactical_eager_loading not eager load if passing proc or block to association method (jeremyevans)
|
1404
|
-
|
1405
|
-
* Make eager_each plugin handle eager loading for Dataset#first and similar methods (jeremyevans)
|
1406
|
-
|
1407
|
-
=== 4.31.0 (2016-02-01)
|
1408
|
-
|
1409
|
-
* Convert types in association_pks setters before saving them, instead of just before running queries (jeremyevans)
|
1410
|
-
|
1411
|
-
* Use getField and getOID instead of field and oid in the jdbc/postgresql adapter to work around JRuby 9.0.5.0 regression (jeremyevans) (#1137)
|
1412
|
-
|
1413
|
-
* Support using PostgreSQL-specific types in bound variables in the jdbc/postgresql adapter (jeremyevans)
|
1414
|
-
|
1415
|
-
* Add support for running with --enable-frozen-string-literal on ruby 2.3 (jeremyevans)
|
1416
|
-
|
1417
|
-
* Make Database#disconnect in the oracle adapter work correctly on newer versions of oci8 (jeremyevans)
|
1418
|
-
|
1419
|
-
* Support parsing PostgreSQL arrays with explicit bounds (jeremyevans) (#1131)
|
1420
|
-
|
1421
|
-
* Raise an error if attempting to use a migration file not containing a single migration (jeremyevans) (#1127)
|
1422
|
-
|
1423
|
-
* Automatically set referenced key for self referential foriegn key constraint for simple non-autoincrementing primary key on MySQL (jeremyevans) (#1126)
|
1424
|
-
|
1425
|
-
=== 4.30.0 (2016-01-04)
|
1426
|
-
|
1427
|
-
* Add Dataset#insert_conflict and #insert_ignore on SQLite for handling uniqueness violations (Sharpie) (#1121)
|
1428
|
-
|
1429
|
-
* Make Database#row_type in pg_row extension handle different formats of schema-qualified types (jeremyevans) (#1119)
|
1430
|
-
|
1431
|
-
* Add identifier_columns plugin for handling column names containing 2 or more consecutive underscores when saving (jeremyevans) (#1117)
|
1432
|
-
|
1433
|
-
* Support :eager_limit and :eager_limit_strategy dataset options in model eager loaders for per-call limits and strategies (chanks) (#1115)
|
1434
|
-
|
1435
|
-
* Allow IPv6 addresses in database URLs on ruby 1.9+ (hellvinz, jeremyevans) (#1113)
|
1436
|
-
|
1437
|
-
* Make Database#schema :db_type entries include sizes for string types on DB2 (jeremyevans)
|
1438
|
-
|
1439
|
-
* Make Database#schema :db_type entries include sizes for string and decimal types in the jdbc adapter's schema parsing (jeremyevans)
|
1440
|
-
|
1441
|
-
* Recognize another disconnect error in the tinytds adapter (jeremyevans)
|
1442
|
-
|
1443
|
-
=== 4.29.0 (2015-12-01)
|
1444
|
-
|
1445
|
-
* Add Model#json_serializer_opts method to json_serializer plugin, allowing for setting to_json defaults on per-instance basis (jeremyevans)
|
1446
|
-
|
1447
|
-
* Add uuid plugin for automatically setting UUID column when creating a model object (pdrakeweb, jeremyevans) (#1106)
|
1448
|
-
|
1449
|
-
* Allow the sqlanywhere adapter to work with sharding (jeremyevans)
|
1450
|
-
|
1451
|
-
* Support blobs as bound variables in the oracle adapter (jeremyevans) (#1104)
|
1452
|
-
|
1453
|
-
* Order by best results first when using the Database#full_text_search :rank option on PostgreSQL (chanks) (#1101)
|
1454
|
-
|
1455
|
-
* Run Database#table_exists? inside a savepoint if currently in a transaction and the database supports savepoints (jeremyevans) (#1100)
|
1456
|
-
|
1457
|
-
* Allow Database#transaction :retry_on option to work when using savepoints (jeremyevans)
|
1458
|
-
|
1459
|
-
* Allow for external adapters to implement Dataset#date_add_sql_append to integrate with the date_arithmetic extension (jeremyevans)
|
1460
|
-
|
1461
|
-
* Add Dataset#insert_empty_columns_values private method for easy overriding for databases that don't support INSERT with DEFAULT VALUES (jeremyevans)
|
1462
|
-
|
1463
|
-
=== 4.28.0 (2015-11-02)
|
1464
|
-
|
1465
|
-
* Add boolean_subsets plugin, which adds a subset for each boolean column (jeremyevans)
|
1466
|
-
|
1467
|
-
* Add subset_conditions plugin, which adds a method for each subset returning the filter conditions for the subset (jeremyevans)
|
1468
|
-
|
1469
|
-
* Make the list plugin work better with the auto_validations plugin when there is a validation on the position column (jeremyevans)
|
1470
|
-
|
1471
|
-
* Make to_csv for model datasets call instance methods, just like Model#to_csv, in the csv_serializer plugin (skrobul) (#1088)
|
1472
|
-
|
1473
|
-
* Raise Sequel::NoExistingObject instead of generic error if Model#refresh can't find the related row (jeremyevans)
|
1474
|
-
|
1475
|
-
=== 4.27.0 (2015-10-01)
|
1476
|
-
|
1477
|
-
* Don't stub Sequel.synchronize on MRI (YorickPeterse) (#1083)
|
1478
|
-
|
1479
|
-
* Make bin/sequel warn if given arguments that it doesn't use (jeremyevans)
|
1480
|
-
|
1481
|
-
* Fix the order of referenced composite keys returned by Database#foreign_key_list on PostgreSQL (jeremyevans) (#1081)
|
1482
|
-
|
1483
|
-
* Recognize another disconnect error in the jdbc/postgresql adapter (jeremyevans)
|
1484
|
-
|
1485
|
-
* In the active model plugin, make Model#persisted? return false if the transaction used for creation is rolled back (jeremyevans) (#1076)
|
1486
|
-
|
1487
|
-
* Use primary_key :keep_order option in the schema dumper if the auto incrementing column is not the first column in the table (jeremyevans)
|
1488
|
-
|
1489
|
-
* Set :auto_increment option correctly in the schema parser when the auto incrementing column is not the first column in the table (jeremyevans)
|
1490
|
-
|
1491
|
-
* Support :keep_order option to primary_key in schema generator, to not automatically make the primary key the first column (jeremyevans)
|
1492
|
-
|
1493
|
-
* Add new jsonb/json functions and operators supported in PostgreSQL 9.5+ (jeremyevans)
|
1494
|
-
|
1495
|
-
* Add before_after_save plugin, for refreshing created objects and resetting modified flag before calling after_create/update/save hooks (jeremyevans)
|
1496
|
-
|
1497
|
-
* Add Dataset#single_record! and #single_value! which don't require cloning the receiver (jeremyevans)
|
1498
|
-
|
1499
|
-
* Dataset#with_sql_single_value now works correctly for model datasets (jeremyevans)
|
1500
|
-
|
1501
|
-
* Optimize Dataset#single_value and #with_sql_single_value to not create an unnecessary array (jeremyevans)
|
1502
|
-
|
1503
|
-
* Make postgres adapter work with postgres-pr 0.7.0 (jeremyevans) (#1074)
|
1504
|
-
|
1505
|
-
=== 4.26.0 (2015-09-01)
|
1506
|
-
|
1507
|
-
* Make Dataset#== not consider frozen status in determining equality (jeremyevans)
|
1508
|
-
|
1509
|
-
* Support :if_exists option to drop_column on PostgreSQL (jeremyevans)
|
1510
|
-
|
1511
|
-
* Add Dataset#grouping_sets to support GROUP BY GROUPING SETS on PostgreSQL 9.5+, MSSQL 2008+, Oracle, DB2, and SQLAnywhere (jeremyevans)
|
1512
|
-
|
1513
|
-
* Fix handling of Class.new(ModelClass){set_dataset :table} on ruby 1.8 (jeremyevans)
|
1514
|
-
|
1515
|
-
* Use range function constructors instead of casts for known range types in pg_range (jeremyevans) (#1066)
|
1516
|
-
|
1517
|
-
* Make class_table_inheritance plugin work without sti_key (jeremyevans)
|
1518
|
-
|
1519
|
-
* Detect additional disconnect errors when using the tinytds adapter (jeremyevans)
|
1520
|
-
|
1521
|
-
* Make offset emulation without order but with explicit selection handle ambiguous column names (jeremyevans)
|
1522
|
-
|
1523
|
-
* Allow preparing already prepared statements when emulating limits and/or offsets (jeremyevans)
|
1524
|
-
|
1525
|
-
* Have Sequel::NoMatchingRow exceptions record the dataset related to the exception (pedro, jeremyevans) (#1060)
|
1526
|
-
|
1527
|
-
=== 4.25.0 (2015-08-01)
|
1528
|
-
|
1529
|
-
* Add Dataset#insert_conflict on PostgreSQL 9.5+, for upsert/insert ignore support using INSERT ON CONFLICT (jeremyevans)
|
1530
|
-
|
1531
|
-
* Support Dataset#group_rollup and #group_cube on PostgreSQL 9.5+ (jeremyevans)
|
1532
|
-
|
1533
|
-
* Automatically REORG tables when altering when using jdbc/db2 (karlhe) (#1054)
|
1534
|
-
|
1535
|
-
* Recognize constraint violation exceptions on swift/sqlite (jeremyevans)
|
1536
|
-
|
1537
|
-
* Recognize another check constraint violation exception message on SQLite (jeremyevans)
|
1538
|
-
|
1539
|
-
* Allow =~ and !~ to be used on ComplexExpressions (janko-m) (#1050)
|
1540
|
-
|
1541
|
-
* Support case sensitive SQL Server 2012 in MSSQL metadata queries (knut2) (#1049)
|
1542
|
-
|
1543
|
-
* Add Dataset#group_append, for appending to the existing GROUP BY clause (YorickPeterse) (#1047)
|
1544
|
-
|
1545
|
-
* Add inverted_subsets plugin, for creating an inverted subset method for each subset (celsworth) (#1042)
|
1546
|
-
|
1547
|
-
* Make Dataset#for_update not use the :read_only database when the dataset is executed (jeremyevans) (#1041)
|
1548
|
-
|
1549
|
-
* Add singular_table_names plugin, for changing Sequel to not pluralize table names by default (jeremyevans)
|
1550
|
-
|
1551
|
-
* PreparedStatement#prepare now raises an Error (jeremyevans)
|
1552
|
-
|
1553
|
-
* Clear delayed association pks when refreshing an object (jeremyevans)
|
1554
|
-
|
1555
|
-
* Add empty_array_consider_nulls extension to make Sequel consider NULL values when using IN/NOT IN with an empty array (jeremyevans)
|
1556
|
-
|
1557
|
-
* Make Sequel default to ignoring NULL values when using IN/NOT IN with an empty array (jeremyevans)
|
1558
|
-
|
1559
|
-
* Remove the deprecated firebird and informix adapters (jeremyevans)
|
1560
|
-
|
1561
|
-
* Make :collate option when creating columns literalize non-String values on PostgreSQL (jeremyevans) (#1040)
|
1562
|
-
|
1563
|
-
* Make dirty plugin notice when serialized column is changed (celsworth) (#1039)
|
1564
|
-
|
1565
|
-
* Allow prepared statements to use RETURNING (jeremyevans) (#1036)
|
1566
|
-
|
1567
|
-
=== 4.24.0 (2015-07-01)
|
1568
|
-
|
1569
|
-
* Allow class_table_inheritance plugin to support subclasses that don't add additional columns (QuinnHarris, jeremyevans) (#1030)
|
1570
|
-
|
1571
|
-
* Add :columns option to update_refresh plugin, specifying the columns to include in the RETURNING clause (celsworth) (#1029)
|
1572
|
-
|
1573
|
-
* Use column symbol key for auto validation unique errors if the unique index is on a single column (jeremyevans)
|
1574
|
-
|
1575
|
-
* Allow :timeout option to Database#listen in the postgres adapter to be a callable object (celsworth) (#1028)
|
1576
|
-
|
1577
|
-
* Add pg_inet_ops extension, for DSL support for PostgreSQL inet/cidr operators and functions (celsworth, jeremyevans) (#1024)
|
1578
|
-
|
1579
|
-
* Support :*_opts options in auto_validations plugin, for setting options for the underlying validation methods (celsworth, jeremyevans) (#1026)
|
1580
|
-
|
1581
|
-
* Support :delay_pks association option in association_pks to delay setting of associated_pks until after saving (jeremyevans)
|
1582
|
-
|
1583
|
-
* Make jdbc subadapters work if they issue queries while the subadapter is being loaded (jeremyevans) (#1022)
|
1584
|
-
|
1585
|
-
* Handle 64-bit auto incrementing primary keys in jdbc subadapters (DougEverly) (#1018, #1019)
|
1586
|
-
|
1587
|
-
* Remove the deprecated db2 and dbi adapters (jeremyevans)
|
1588
|
-
|
1589
|
-
* Make auto_validation plugin use :from=>:values option to setup validations on the underlying columns (jeremyevans)
|
1590
|
-
|
1591
|
-
* Add :from=>:values option to validation_helpers methods, for getting values from the values hash instead of a method call (jeremyevans)
|
1592
|
-
|
1593
|
-
=== 4.23.0 (2015-06-01)
|
1594
|
-
|
1595
|
-
* Make dataset.call_sproc(:insert) work in the jdbc adapter (flash-gordon) (#1013)
|
1596
|
-
|
1597
|
-
* Add update_refresh plugin, for refreshing a model instance when updating (jeremyevans)
|
1598
|
-
|
1599
|
-
* Add delay_add_association plugin, for delaying add_* method calls on new objects until after saving the object (jeremyevans)
|
1600
|
-
|
1601
|
-
* Add validate_associated plugin, for validating associated objects when validating the current object (jeremyevans)
|
1602
|
-
|
1603
|
-
* Make Postgres::JSONBOp#[] and #get_text return JSONBOp instances (jeremyevans) (#1005)
|
1604
|
-
|
1605
|
-
* Remove the fdbsql, jdbc/fdbsql, and openbase adapters (jeremyevans)
|
1606
|
-
|
1607
|
-
* Database#transaction now returns block return value if :rollback=>:always is used (jeremyevans)
|
1608
|
-
|
1609
|
-
* Allow postgresql:// connection strings as aliases to postgres://, for compatibility with libpq (jeremyevans) (#1004)
|
1610
|
-
|
1611
|
-
* Make Model#move_to in the list plugin handle out-of-range targets without raising an exception (jeremyevans) (#1003)
|
1612
|
-
|
1613
|
-
* Make Database#add_named_conversion_proc on PostgreSQL handle conversion procs for enum types (celsworth) (#1002)
|
1614
|
-
|
1615
|
-
=== 4.22.0 (2015-05-01)
|
1616
|
-
|
1617
|
-
* Deprecate the db2, dbi, fdbsql, firebird, jdbc/fdbsql, informix, and openbase adapters (jeremyevans)
|
1618
|
-
|
1619
|
-
* Avoid hash allocations and rehashes (jeremyevans)
|
1620
|
-
|
1621
|
-
* Don't silently ignore :jdbc_properties Database option in jdbc adapter (jeremyevans)
|
1622
|
-
|
1623
|
-
* Make tree plugin set reciprocal association for children association correctly (lpil, jeremyevans) (#995)
|
1624
|
-
|
1625
|
-
* Add Sequel::MassAssignmentRestriction exception, raised for mass assignment errors in strict mode (jeremyevans) (#994)
|
1626
|
-
|
1627
|
-
* Handle ODBC::SQL_BIT type as boolean in the odbc adapter, fixing boolean handling on odbc/mssql (jrgns) (#993)
|
1628
|
-
|
1629
|
-
* Make :auto_validations plugin check :default entry instead of :ruby_default entry for checking existence of default value (jeremyevans) (#990)
|
1630
|
-
|
1631
|
-
* Adapters should now set :default schema option to nil when adapter can determine that the value is nil (jeremyevans)
|
1632
|
-
|
1633
|
-
* Do not add a schema :max_length entry for a varchar(max) column on MSSQL (jeremyevans)
|
1634
|
-
|
1635
|
-
* Allow :default value for PostgreSQL array columns to be a ruby array when using the pg_array extension (jeremyevans) (#989)
|
1636
|
-
|
1637
|
-
* Add csv_serializer plugin for serializing model objects to and from csv (bjmllr, jeremyevans) (#988)
|
1638
|
-
|
1639
|
-
* Make Dataset#to_hash and #to_hash_groups handle single array argument for model datasets (jeremyevans)
|
1640
|
-
|
1641
|
-
* Handle Model#cancel_action in association before hooks (jeremyevans)
|
1642
|
-
|
1643
|
-
* Use a condition variable instead of busy waiting in the threaded connection pools on ruby 1.9+ (jeremyevans)
|
1644
|
-
|
1645
|
-
* Use Symbol#to_proc instead of explicit blocks (jeremyevans)
|
1646
|
-
|
1647
|
-
=== 4.21.0 (2015-04-01)
|
1648
|
-
|
1649
|
-
* Support :tsquery and :tsvector options in Dataset#full_text_search on PostgreSQL, for using existing tsquery/tsvector expressions (jeremyevans)
|
1650
|
-
|
1651
|
-
* Fix TinyTds::Error being raised when trying to cancel a query on a closed connection in the tinytds adapter (jeremyevans)
|
1652
|
-
|
1653
|
-
* Add GenericExpression#!~ for inverting =~ on ruby 1.9 (similar to inverting a hash) (jeremyevans) (#979)
|
1654
|
-
|
1655
|
-
* Add GenericExpression#=~ for equality, inclusion, and pattern matching (similar to using a hash) (jeremyevans) (#979)
|
1656
|
-
|
1657
|
-
* Add Database#add_named_conversion_proc on PostgreSQL to make it easier to add conversion procs for types by name (jeremyevans)
|
1658
|
-
|
1659
|
-
* Make Sequel.pg_jsonb return JSONBOp instances instead of JSONOp instances when passed other than Array or Hash (jeremyevans) (#977)
|
1660
|
-
|
1661
|
-
* Demodulize default root name in json_serializer plugin (janko-m) (#968)
|
1662
|
-
|
1663
|
-
* Make Database#transaction work in after_commit/after_rollback blocks (jeremyevans)
|
1664
|
-
|
1665
|
-
=== 4.20.0 (2015-03-03)
|
1666
|
-
|
1667
|
-
* Restore the use of AUTOINCREMENT on SQLite (jeremyevans) (#965)
|
1668
|
-
|
1669
|
-
* Duplicate the associations hash when duplicating a model object (jeremyevans)
|
1670
|
-
|
1671
|
-
* Correctly apply association limit when eager loading with an eager block using default limit strategy on some databases (jeremyevans)
|
1672
|
-
|
1673
|
-
* Fix eager loading when using the :window_function limit strategy with an eager block and cascaded associations (jeremyevans)
|
1674
|
-
|
1675
|
-
* Add support for set_column_type :auto_increment=>true to add AUTO_INCREMENT to existing column on MySQL (jeremyevans) (#959)
|
1676
|
-
|
1677
|
-
* Add support for overridding the :instance_specific association option (jeremyevans)
|
1678
|
-
|
1679
|
-
* Recognize MSSQL bit type as boolean in the schema_dumper (jeremyevans)
|
1680
|
-
|
1681
|
-
* Skip eager loading queries if there are no matching keys (jeremyevans) (#952)
|
1682
|
-
|
1683
|
-
* Dataset#paged_each now returns an enumerator if not passed a block (jeremyevans)
|
1684
|
-
|
1685
|
-
* Use to_json :root option with string value as the JSON object key in the json_serializer plugin (jeremyevans)
|
1686
|
-
|
1687
|
-
* Allow create_enum in the pg_enum extension be reversible in migrations (celsworth) (#951)
|
1688
|
-
|
1689
|
-
* Have swift adapter respect database and application timezone settings (asppsa, jeremyevans) (#946)
|
1690
|
-
|
1691
|
-
* Don't have the static cache plugin attempt to validate objects (jeremyevans)
|
1692
|
-
|
1693
|
-
* Make freeze not validate objects if their errors are already frozen (jeremyevans)
|
1694
|
-
|
1695
|
-
* Only use prepared statements for associations if caching association metadata (jeremyevans)
|
1696
|
-
|
1697
|
-
* Set parent association when loading descendants in the rcte_tree plugin (jeremyevans)
|
1698
|
-
|
1699
|
-
* Add Database#transaction :before_retry option, specifying a proc to call before retrying (uhoh-itsmaciek) (#941)
|
1700
|
-
|
1701
|
-
=== 4.19.0 (2015-02-01)
|
1702
|
-
|
1703
|
-
* Make jdbc/sqlanywhere correctly set :auto_increment entry in schema hashes (jeremyevans)
|
1704
|
-
|
1705
|
-
* Add Model#cancel_action for canceling actions in before hooks, instead of having the hooks return false (jeremyevans)
|
1706
|
-
|
1707
|
-
* Support not setting @@wait_timeout on MySQL via :timeout=>nil Database option (jeremyevans)
|
1708
|
-
|
1709
|
-
* Add accessed_columns plugin, recording which columns have been accessed for a model instance (jeremyevans)
|
1710
|
-
|
1711
|
-
* Use correct migration version when using IntegerMigrator with :allow_missing_migration_files (blerins) (#938)
|
1712
|
-
|
1713
|
-
* Make Dataset#union, #intersect, and #except automatically handle datasets with raw SQL (jeremyevans) (#934)
|
1714
|
-
|
1715
|
-
* Add column_conflicts plugin to automatically handle columns that conflict with method names (jeremyevans) (#929)
|
1716
|
-
|
1717
|
-
* Add Model#get_column_value and #set_column_value to get/set column values (jeremyevans) (#929)
|
1718
|
-
|
1719
|
-
=== 4.18.0 (2015-01-02)
|
1720
|
-
|
1721
|
-
* Make Dataset#empty? work when the dataset is ordered by a non-column expression (pete) (#923)
|
1722
|
-
|
1723
|
-
* Fix passing a hash value to :eager association option (jeremyevans)
|
1724
|
-
|
1725
|
-
* Treat all PG::ConnectionBad exceptions as disconnect errors in the postgres adapter (jeremyevans)
|
1726
|
-
|
1727
|
-
* Add :auto_increment key to schema information for primary key columns (jeremyevans) (#919)
|
1728
|
-
|
1729
|
-
* Fix handling of schema qualified tables in many_through_many associations (jeremyevans)
|
1730
|
-
|
1731
|
-
=== 4.17.0 (2014-12-01)
|
1732
|
-
|
1733
|
-
* Fix handling of Sequel::SQL::Blob instances in bound variables in the postgres adapter (jeremyevans) (#917)
|
1734
|
-
|
1735
|
-
* Add :preconnect Database option for immediately creating the maximum number of connections (jeremyevans)
|
1736
|
-
|
1737
|
-
* Support DB.pool.max_size for the single connection pools (jeremyevans)
|
1738
|
-
|
1739
|
-
* Work around regression in jdbc-sqlite3 3.8.7 where empty blobs are returned as nil (jeremyevans)
|
1740
|
-
|
1741
|
-
* Work around regression in jdbc-sqlite3 3.8.7 when using JDBC getDate method for date parsing (jeremyevans)
|
1742
|
-
|
1743
|
-
* Make Model#update_or_create return object if existing object exists but updates are not necessary (contentfree) (#916)
|
1744
|
-
|
1745
|
-
* Add Dataset#server? for conditionally setting a default server to use if no default is present (jeremyevans)
|
1746
|
-
|
1747
|
-
* Add Database#sharded? for determining if database uses sharding (jeremyevans)
|
1748
|
-
|
1749
|
-
* Fix server used by Dataset#insert_select on PostgreSQL (jeremyevans)
|
1750
|
-
|
1751
|
-
* Fix server used for deleting model instances when using sharding (jeremyevans)
|
1752
|
-
|
1753
|
-
=== 4.16.0 (2014-11-01)
|
1754
|
-
|
1755
|
-
* Make Database#create_table? and #create_join_table? not use IF NOT EXISTS if indexes are being added (jeremyevans) (#904)
|
1756
|
-
|
1757
|
-
* Dataset#distinct now accepts virtual row blocks (chanks) (#901)
|
1758
|
-
|
1759
|
-
* Recognize disconnect errors in the postgres adapter when SSL is used (jeremyevans) (#900)
|
1760
|
-
|
1761
|
-
* Stop converting '' default values to nil default values on MySQL (jeremyevans)
|
1762
|
-
|
1763
|
-
* Add Model#qualified_pk_hash, for returning a hash with qualified pk keys (jeremyevans)
|
1764
|
-
|
1765
|
-
* Make validates_unique use a qualified primary key if the dataset is joined (jeremyevans) (#895)
|
1766
|
-
|
1767
|
-
* Make Sequel::Model.cache_associations = false skip the database's schema cache when loading the schema (jeremyevans)
|
1768
|
-
|
1769
|
-
* Make Database#foreign_key_list work on Microsoft SQL Server 2005 (jeremyevans)
|
1770
|
-
|
1771
|
-
* Make create_table with :foreign option reversible on PostgreSQL (jeremyevans)
|
1772
|
-
|
1773
|
-
* Make drop_table with :foreign option on PostgreSQL drop a foreign table (johnnyt) (#892)
|
1774
|
-
|
1775
|
-
=== 4.15.0 (2014-10-01)
|
1776
|
-
|
1777
|
-
* Make AssociationReflection#reciprocal not raise error if associated class contains association with invalid associated class (jeremyevans)
|
1778
|
-
|
1779
|
-
* Make create_view(:view_name, dataset, :materialized=>true) reversible on PostgreSQL (jeremyevans)
|
1780
|
-
|
1781
|
-
* Add support for creating foreign tables on PostgreSQL using :foreign and :options create_table options (jeremyevans)
|
1782
|
-
|
1783
|
-
* Raise Error if a primary key is necessary to use an association, but the model doesn't have a primary key (jeremyevans)
|
1784
|
-
|
1785
|
-
* Make tactical_eager_loading plugin work for limited associations (jeremyevans)
|
1786
|
-
|
1787
|
-
* Add PlaceholderLiteralizer#with_dataset, for returning a new literalizer using a modified dataset (jeremyevans)
|
1788
|
-
|
1789
|
-
* Support active_model 4.2.0beta1 in the active_model plugin (jeremyevans)
|
1790
|
-
|
1791
|
-
* Make Dataset#insert in the informix adapter return last inserted id (jihwans) (#887)
|
1792
|
-
|
1793
|
-
* Support :nolog option in the informix adapter to disable transactions (jihwans) (#887)
|
1794
|
-
|
1795
|
-
* Remove optional argument for Postgres::{JSON,JSONB}Op#to_record and #to_recordset (jeremyevans)
|
1796
|
-
|
1797
|
-
* Add support for FoundationDB SQL Layer, via fdbsql and jdbc/fdbsql adapters (ScottDugas, jeremyevans) (#884)
|
1798
|
-
|
1799
|
-
* Work around bug in old versions of MySQL when schema dumping a table with multiple timestamp columns (jeremyevans) (#882)
|
1800
|
-
|
1801
|
-
* Support more array types by default in the pg_array extension, such as xml[] and uuid[] (jeremyevans)
|
1802
|
-
|
1803
|
-
* Add Sequel::Model.cache_associations accessor, which can be set to false to not cache association metadata (jeremyevans)
|
1804
|
-
|
1805
|
-
* Add split_values plugin, for moving noncolumn entries from the values hash into a separate hash (jeremyevans) (#868)
|
1806
|
-
|
1807
|
-
=== 4.14.0 (2014-09-01)
|
1808
|
-
|
1809
|
-
* Raise original exception if there is an exception raised when rolling back transaction/savepoint (jeremyevans) (#875)
|
1810
|
-
|
1811
|
-
* Allow delayed evaluation blocks to take dataset as an argument (jeremyevans)
|
1812
|
-
|
1813
|
-
* Allow more types as filter expressions, only specifically disallow Numeric/String expressions (jeremyevans)
|
1814
|
-
|
1815
|
-
* Remove objects from cached association array at time of nested_attributes call instead of waiting until save (jeremyevans)
|
1816
|
-
|
1817
|
-
* Handle composite primary keys when working around validation issues for one_to_(one|many) associations in nested_attributes plugin (jeremyevans) (#870)
|
1818
|
-
|
1819
|
-
* Recognize additional disconnect error in jdbc/jtds adapter (jeremyevans)
|
1820
|
-
|
1821
|
-
* Have association_join work with existing model selections (jeremyevans)
|
1822
|
-
|
1823
|
-
* Fix regression in class_table_inheritance plugin when lazily loading column in middle table (jeremyevans) (#862)
|
1824
|
-
|
1825
|
-
* Add cache_key_prefix method to caching plugin, which can be overridden for custom handling (pete) (#861)
|
1826
|
-
|
1827
|
-
* Add :when option to PostgreSQL create_trigger method, for adding a filter to the trigger (aschrab) (#860)
|
1828
|
-
|
1829
|
-
* Recognize an additional serialization failure on PostgreSQL (tmtm) (#857)
|
1830
|
-
|
1831
|
-
=== 4.13.0 (2014-08-01)
|
1832
|
-
|
1833
|
-
* Use copy constructors instead of overriding Model#dup and #clone (ged, jeremyevans) (#852)
|
1834
|
-
|
1835
|
-
* Fix handling of MySQL create_table foreign_key calls using :key option (mimperatore, jeremyevans) (#850)
|
1836
|
-
|
1837
|
-
* Handle another disconnection error in the postgres adapter (lbosque) (#848)
|
1838
|
-
|
1839
|
-
* Make list plugin update remaining positions after destroying an instance (ehq, jeremyevans) (#847)
|
1840
|
-
|
1841
|
-
* Unalias aliased tables in Dataset#insert (jeremyevans)
|
1842
|
-
|
1843
|
-
* Add insert_returning_select plugin, for setting up RETURNING for inserts for models selecting explicit columns (jeremyevans)
|
1844
|
-
|
1845
|
-
* Make Model#save use insert_select if the dataset used for inserting already uses returning (jeremyevans)
|
1846
|
-
|
1847
|
-
* Add Dataset#unqualified_column_for helper method, returning unqualified version of possibly qualified column (jeremyevans)
|
1848
|
-
|
1849
|
-
* Calling Dataset#returning when the Database does not support or emulate RETURNING now raises an Error (jeremyevans)
|
1850
|
-
|
1851
|
-
* Emulate RETURNING on Microsoft SQL Server using OUTPUT, as long as only simple column references are used (jeremyevans)
|
1852
|
-
|
1853
|
-
* Switch class_table_inheritance plugin to use JOIN ON instead of JOIN USING (jeremyevans)
|
1854
|
-
|
1855
|
-
* Qualify primary keys for models with joined datasets when looking up model instances by primary key (jeremyevans)
|
1856
|
-
|
1857
|
-
* Fix qualification of columns when Dataset#graph automatically wraps the initially graphed dataset in a subselect (jeremyevans)
|
1858
|
-
|
1859
|
-
* Make Dataset#joined_dataset? a public method (jeremyevans)
|
1860
|
-
|
1861
|
-
* Allow external jdbc, odbc, and do subadapters to be loaded automatically (jeremyevans)
|
1862
|
-
|
1863
|
-
* Recognize another disconnect error in the jdbc/mysql adapter (jeremyevans)
|
1864
|
-
|
1865
|
-
* Set primary keys correctly for models even if datasets select specific columns (jeremyevans)
|
1866
|
-
|
1867
|
-
* Add dataset_source_alias extension, for automatically aliasing datasets to their first source (jeremyevans)
|
1868
|
-
|
1869
|
-
* Use qualified columns in the lazy_attributes plugin (jeremyevans)
|
1870
|
-
|
1871
|
-
* Add column_select plugin, for using explicit column selections in model datasets (jeremyevans)
|
1872
|
-
|
1873
|
-
* Use associated model's existing selection for join associations if it consists solely of explicitly quailfied columns (jeremyevans)
|
1874
|
-
|
1875
|
-
* Add round_timestamps extension for automatically rounding timestamp values to database precision before literalizing (jeremyevans)
|
1876
|
-
|
1877
|
-
* Make rake default task run plugin specs as well as core/model specs (jeremyevans)
|
1878
|
-
|
1879
|
-
* Use all_tables and all_views for Database#tables and #views on Oracle (jeremyevans)
|
1880
|
-
|
1881
|
-
* Use all_tab_cols instead of user_tab cols for defaults parsing in the oracle adapter (jeremyevans)
|
1882
|
-
|
1883
|
-
* Fix recursive mutex locking issue on JRuby when using Sequel::Model(dataset) (jeremyevans) (#841)
|
1884
|
-
|
1885
|
-
* Make composition and serialization plugins support validations on underlying columns (jeremyevans)
|
1886
|
-
|
1887
|
-
* Fix regression in timestamps and table inheritance plugin where column values would not be saved if validation is skipped (jeremyevans) (#839)
|
1888
|
-
|
1889
|
-
* Add pg_enum extension, for dealing with PostgreSQL enums (jeremyevans)
|
1890
|
-
|
1891
|
-
* Add modification_detection plugin, for automatic detection of in-place column value modifications (jeremyevans)
|
1892
|
-
|
1893
|
-
* Speed up using plain strings, numbers, true, false, and nil in json columns if underlying json library supports them (jeremyevans) (#834)
|
1894
|
-
|
1895
|
-
=== 4.12.0 (2014-07-01)
|
1896
|
-
|
1897
|
-
* Support :readonly Database option in sqlite adapter (ippeiukai, jeremyevans) (#832)
|
1898
|
-
|
1899
|
-
* Automatically setup max_length validations for string columns in the auto_validations plugin (jeremyevans)
|
1900
|
-
|
1901
|
-
* Add :max_length entry to column schema hashes for string types (jeremyevans)
|
1902
|
-
|
1903
|
-
* Add :before_thread_exit option to Database#listen_for_static_cache_updates in pg_static_cache_updater extension (jeremyevans)
|
1904
|
-
|
1905
|
-
* Add Database#values on PostgreSQL to create a dataset that uses VALUES instead of SELECT (jeremyevans)
|
1906
|
-
|
1907
|
-
* Add Model#set_nested_attributes to nested_attributes, allowing setting nested attributes options per-call (jeremyevans)
|
1908
|
-
|
1909
|
-
* Use explicit columns when using automatically prepared SELECT statements in the prepared statement plugins (jeremyevans)
|
1910
|
-
|
1911
|
-
* Make Dataset#insert_select on PostgreSQL respect existing RETURNING clause (jeremyevans)
|
1912
|
-
|
1913
|
-
* Fix eager loading limited associations via a UNION when an association block is used (jeremyevans)
|
1914
|
-
|
1915
|
-
* Associate reciprocal object before saving associated object when creating new objects in nested_attributes (chanks, jeremyevans) (#831)
|
1916
|
-
|
1917
|
-
* Handle intervals containing more than 100 hours in the pg_interval extension's parser (will) (#827)
|
1918
|
-
|
1919
|
-
* Remove methods/class deprecated in 4.11.0 (jeremyevans)
|
1920
|
-
|
1921
|
-
* Allow Dataset#natural_join/cross_join and related methods to take a options hash passed to join_table (jeremyevans)
|
1922
|
-
|
1923
|
-
* Add :reset_implicit_qualifier option to Dataset#join_table, to set false to not reset the implicit qualifier (jeremyevans)
|
1924
|
-
|
1925
|
-
* Support :notice_receiver Database option when postgres adapter is used with pg driver (jeltz, jeremyevans) (#825)
|
1926
|
-
|
1927
|
-
=== 4.11.0 (2014-06-03)
|
1928
|
-
|
1929
|
-
* Add :model_map option to class_table_inheritance plugin so class names don't need to be stored in the database (jeremyevans)
|
1930
|
-
|
1931
|
-
* Set version when using for MySQL/SQLite emulation in the mock adapter (jeremyevans)
|
1932
|
-
|
1933
|
-
* Add support for CUBRID/SQLAnywhere emulation to the mock adapter (jeremyevans)
|
1934
|
-
|
1935
|
-
* Add support for the jsonb operators added in PostgreSQL 9.4 to the pg_json_ops extension (jeremyevans)
|
1936
|
-
|
1937
|
-
* Add support for new json/jsonb functions added in PostgreSQL 9.4 to the pg_json_ops extension (jeremyevans)
|
1938
|
-
|
1939
|
-
* Add support for the PostgreSQL 9.4+ jsonb type to the pg_json_ops extension (jeremyevans)
|
1940
|
-
|
1941
|
-
* Add support for derived column lists to Sequel.as and SQL::AliasMethods#as (jeremyevans)
|
1942
|
-
|
1943
|
-
* Support connecting to a DB2 catalog name in the ibmdb adapter (calh) (#821)
|
1944
|
-
|
1945
|
-
* Fix warnings in some cases in the ibmdb adapter (calh) (#820)
|
1946
|
-
|
1947
|
-
* Add SQL::Function#with_ordinality for creating set returning functions WITH ORDINALITY (jeremyevans)
|
1948
|
-
|
1949
|
-
* Add SQL::Function#filter for creating filtered aggregate function calls (jeremyevans)
|
1950
|
-
|
1951
|
-
* Add SQL::Function#within_group for creating ordered-set and hypothetical-set aggregate functions (jeremyevans)
|
1952
|
-
|
1953
|
-
* Add SQL::Function#lateral, for creating set returning functions that will be preceded by LATERAL (jeremyevans)
|
1954
|
-
|
1955
|
-
* Add SQL::Function#quoted and #unquoted methods, to enable/disable quoting of function names (jeremyevans)
|
1956
|
-
|
1957
|
-
* Deprecate Dataset#{window,emulated,}_function_sql_append (jeremyevans)
|
1958
|
-
|
1959
|
-
* Deprecate SQL::WindowFunction and SQL::EmulatedFunction classes, switch to using options on SQL::Function (jeremyevans)
|
1960
|
-
|
1961
|
-
* Only modify changed_columns if deserialized value changes in the serialization plugin (jeremyevans) (#818)
|
1962
|
-
|
1963
|
-
* Support PostgreSQL 9.4+ jsonb type in the pg_json extension (jeremyevans)
|
1964
|
-
|
1965
|
-
* Allow Postgres::ArrayOp#unnest to accept arguments in the pg_array_ops extension (jeremyevans)
|
1966
|
-
|
1967
|
-
* Add Postgres::ArrayOp#cardinality to the pg_array_ops extension (jeremyevans)
|
1968
|
-
|
1969
|
-
* Add :check option to Database#create_view for WITH [LOCAL] CHECK OPTION support (jeremyevans)
|
1970
|
-
|
1971
|
-
* Add :concurrently option to Database#refresh_view on PostgreSQL to support concurrent refresh of materialized views (jeremyevans)
|
1972
|
-
|
1973
|
-
* Call the :after_connect Database option proc with both the connection and server/shard if it accepts 2 arguments (pedro, jeremyevans) (#813)
|
1974
|
-
|
1975
|
-
* Make multiple plugins set values before validation instead of before create, works better with auto_validations (jeremyevans)
|
1976
|
-
|
1977
|
-
* Support a default Dataset#import slice size, set to 500 on SQLite (jeremyevans) (#810)
|
1978
|
-
|
1979
|
-
* Make :read_only transaction option be per-savepoint on PostgreSQL (jeremyevans) (#807)
|
1980
|
-
|
1981
|
-
* Add :rank option to Dataset#full_text_search on PostgreSQL, to order by the ranking (jeremyevans) (#809)
|
1982
|
-
|
1983
|
-
* Remove methods deprecated in 4.10.0 (jeremyevans)
|
1984
|
-
|
1985
|
-
=== 4.10.0 (2014-05-01)
|
1986
|
-
|
1987
|
-
* Make Model.include API same as Module.include (ged) (#803)
|
1988
|
-
|
1989
|
-
* Dataset::PlaceholderLiteralizer now handles DelayedEvaluations correctly (jeremyevans)
|
1990
|
-
|
1991
|
-
* Refactor type conversion in the jdbc adapter, for up to a 20% speedup (jeremyevans)
|
1992
|
-
|
1993
|
-
* Add Dataset#with_fetch_size to jdbc adapter, for setting fetch size for JDBC ResultSets (jeremyevans)
|
1994
|
-
|
1995
|
-
* Default to a fetch_size of 100 in the jdbc/oracle adapter, similar to the oci8-based oracle adapter (jeremyevans)
|
1996
|
-
|
1997
|
-
* Add Database#fetch_size accessor and :fetch_size option to jdbc adapter, for setting JDBC Statement fetch size (jeremyevans)
|
1998
|
-
|
1999
|
-
* Automatically determine array type in pg_array_associations plugin, explicitly cast arrays in more places (jeremyevans, maccman) (#800)
|
2000
|
-
|
2001
|
-
* Speed up Dataset#literal for symbols 60% by caching results, speeding up dataset literalization up to 40% or more (jeremyevans)
|
2002
|
-
|
2003
|
-
* Speed up Sequel.split_symbol 10-20x by caching results, speeding up dataset literalization up to 80% or more (jeremyevans)
|
2004
|
-
|
2005
|
-
* Speed up dataset literalization for simple datasets by up to 100% (jeremyevans)
|
2006
|
-
|
2007
|
-
* Support :fractional_seconds Database option on MySQL 5.6.5+ to support fractional seconds by default (jeremyevans) (#797)
|
2008
|
-
|
2009
|
-
* Work around MySQL 5.6+ bug when combining DROP FOREIGN KEY and DROP INDEX in same ALTER TABLE statement (jeremyevans)
|
2010
|
-
|
2011
|
-
* Make auto_validations plugin handle models that select from subqueries (jeremyevans)
|
2012
|
-
|
2013
|
-
* Recognize additional disconnect errors in the postgres adapter (jeremyevans)
|
2014
|
-
|
2015
|
-
* Make import/multi_insert insert multiple rows in a single query using a UNION on Oracle, DB2, and Firebird (jeremyevans)
|
2016
|
-
|
2017
|
-
* Speed up association_pks many_to_many setter method by using Dataset#import (jeremyevans)
|
2018
|
-
|
2019
|
-
* Add Model.prepared_finder, similar to .finder but using a prepared statement (jeremyevans)
|
2020
|
-
|
2021
|
-
* Model.def_{add_method,association_dataset_methods,remove_methods} are now deprecated (jeremyevans)
|
2022
|
-
|
2023
|
-
* Model.eager_loading_dataset and Model.apply_association_dataset_opts are now deprecated (jeremyevans)
|
2024
|
-
|
2025
|
-
* Make prepared_statement_associations plugin handle one_through_one and one_through_many associations (jeremyevans)
|
2026
|
-
|
2027
|
-
* Use placeholder literalizer for regular association loading for up to 85% speedup (jeremyevans)
|
2028
|
-
|
2029
|
-
* Use placeholder literalizer for eager association loading for up to 20% speedup (jeremyevans)
|
2030
|
-
|
2031
|
-
* Make Model#marshallable! work correctly when using the tactical_eager_loading plugin (jeremyevans)
|
2032
|
-
|
2033
|
-
* Respect :foreign_key_constraint_name option when adding columns to existing table on MySQL (noah256) (#795)
|
2034
|
-
|
2035
|
-
* AssociationReflection#association_dataset now handles joining tables if necessary (jeremyevans)
|
2036
|
-
|
2037
|
-
* Support drop_view :if_exists option on SQLite, MySQL, H2, and HSQLDB (jeremyevans) (#793)
|
2038
|
-
|
2039
|
-
* Support drop_table :if_exists option on HSQLDB (jeremyevans)
|
2040
|
-
|
2041
|
-
* Add Database#transaction :auto_savepoint option, for automatically using a savepoint in nested transactions (jeremyevans)
|
2042
|
-
|
2043
|
-
* Add :server_version Database option on Microsoft SQL Server, instead of querying the database for it (jeremyevans)
|
2044
|
-
|
2045
|
-
* Support :correlated_subquery as an eager_graph and filter by associations limit strategy for one_to_* associations (jeremyevans)
|
2046
|
-
|
2047
|
-
* Support named paramters in call_mssql_sproc on Microsoft SQL Server (y.zemlyanukhin, jeremyevans) (#792)
|
2048
|
-
|
2049
|
-
* Handle placeholder literalizer arguments when emulating offsets (jeremyevans)
|
2050
|
-
|
2051
|
-
* Don't attempt to emulate offsets if the dataset uses literal SQL (jeremyevans)
|
2052
|
-
|
2053
|
-
* Use a UNION-based strategy by default to eagerly load limited associations (jeremyevans)
|
2054
|
-
|
2055
|
-
* Support offsets without limits on MySQL, SQLite, H2, SQLAnywhere and CUBRID (jeremyevans)
|
2056
|
-
|
2057
|
-
* Remove the install/uninstall rake tasks (jeremyevans)
|
2058
|
-
|
2059
|
-
* Use INSERT VALUES with multiple rows for Dataset#import and #multi_insert on more databases (jeremyevans)
|
2060
|
-
|
2061
|
-
* Support common table expressions (WITH clause) on SQLite >=3.8.3 (jeremyevans)
|
2062
|
-
|
2063
|
-
=== 4.9.0 (2014-04-01)
|
2064
|
-
|
2065
|
-
* Recognize CHECK constraint violations on newer versions of SQLite (jeremyevans)
|
2066
|
-
|
2067
|
-
* Do not attempt to eager load when calling Dataset#columns in the eager_each plugin (jeremyevans)
|
2068
|
-
|
2069
|
-
* Support :driver option for jdbc adapter, for specifying driver class for cases where getConnection doesn't work (jeremyevans) (#785)
|
2070
|
-
|
2071
|
-
* Massive speedup for PostgreSQL array parser (jeremyevans) (#788)
|
2072
|
-
|
2073
|
-
* Add current_datetime_timestamp extension, for current Time/DateTime instances that are literalized as CURRENT_TIMESTAMP (jeremyevans)
|
2074
|
-
|
2075
|
-
* Recognize additional unique constraint violations on SQLite (jeremyevans) (#782)
|
2076
|
-
|
2077
|
-
* Don't remove column value when validating nested attributes for one_to_* association where association foreign key is the model's primary key (jeremyevans)
|
2078
|
-
|
2079
|
-
* Add Dataset#disable_insert_returning on PostgreSQL for skipping implicit use of RETURNING (jeremyevans)
|
2080
|
-
|
2081
|
-
* Automatically optimize Model.[], .with_pk, and .with_pk! for models with composite keys (jeremyevans)
|
2082
|
-
|
2083
|
-
* Automatically optimize Model.[] when called with a hash (jeremyevans)
|
2084
|
-
|
2085
|
-
* Automatically optimize Model.find, .first, and .first! when called with a single argument (jeremyevans)
|
2086
|
-
|
2087
|
-
* Add Model.finder for creating optimized finder methods using Dataset::PlaceholderLiteralizer (jeremyevans)
|
2088
|
-
|
2089
|
-
* Add Dataset::PlaceholderLiteralizer optimization framework (jeremyevans)
|
2090
|
-
|
2091
|
-
* Add Dataset#with_sql_{each,all,first,single_value,insert,update} optimized methods (jeremyevans)
|
2092
|
-
|
2093
|
-
* Make pg_array extension use correct type when typecasting column values for smallint, oid, real, character, and varchar arrays (jeremyevans)
|
2094
|
-
|
2095
|
-
* Make Database#column_schema_to_ruby_default a public method in the schema_dumper extension (jeremyevans) (#776)
|
2096
|
-
|
2097
|
-
* Fix multiple corner cases in the eager_graph support (jeremyevans) (#771)
|
2098
|
-
|
2099
|
-
* Use streaming to implement paging for Dataset#paged_each in the mysql2 adapter (jeremyevans)
|
2100
|
-
|
2101
|
-
* Use a cursor to implement paging for Dataset#paged_each in the postgres adapter (jeremyevans)
|
2102
|
-
|
2103
|
-
* Add Database#create_join_table? and #create_join_table! for consistency (jeremyevans)
|
2104
|
-
|
2105
|
-
* Add Dataset#where_current_of to the postgres adapter for supporting updating rows based on a cursor's current position (jeremyevans)
|
2106
|
-
|
2107
|
-
* Add Dataset#use_cursor :hold option in the postgres adapter for supporting cursor use outside of a transaction (jeremyevans)
|
2108
|
-
|
2109
|
-
* Add Dataset#paged_each :strategy=>:filter option for increased performance (jeremyevans)
|
2110
|
-
|
2111
|
-
=== 4.8.0 (2014-03-01)
|
2112
|
-
|
2113
|
-
* Add SQL::AliasedExpression#alias alias for #aliaz (jeremyevans)
|
2114
|
-
|
2115
|
-
* Handle SQL::Identifier, SQL::QualifiedIdentifier, and SQL::AliasedExpression objects as first argument to Dataset#graph (jeremyevans)
|
2116
|
-
|
2117
|
-
* Respect qualification and aliases in symbols passed as first argument to Dataset#graph (dividedmind) (#769)
|
2118
|
-
|
2119
|
-
* Recognize new constraint violation error messages in SQLite 3.8.2+ (itswindtw) (#766)
|
2120
|
-
|
2121
|
-
* Use limit strategy to correctly handle limited associations in the dataset_associations plugin (jeremyevans)
|
2122
|
-
|
2123
|
-
* Handle issues in dataset_associations plugin when dataset uses unqualified identifiers for associations requiring joins (jeremyevans)
|
2124
|
-
|
2125
|
-
* Handle fractional seconds in input timestamps in the odbc/mssql adapter (Ross Attrill, jeremyevans)
|
2126
|
-
|
2127
|
-
* Return fractional seconds in timestamps in the odbc adapter (jeremyevans)
|
2128
|
-
|
2129
|
-
* Support :plain and :phrase options to Dataset#full_text_search on PostgreSQL (jeremyevans)
|
2130
|
-
|
2131
|
-
* Use limit strategy to correctly handle filtering by limited associations (jeremyevans)
|
2132
|
-
|
2133
|
-
* Simplify queries used for filtering by associations with conditions (jeremyevans)
|
2134
|
-
|
2135
|
-
* Use an eager limit strategy by default for *_one associations with orders (jeremyevans)
|
2136
|
-
|
2137
|
-
* Support :limit_strategy eager_graph option, for specifying strategy used for limited associations in that eager graph (jeremyevans)
|
2138
|
-
|
2139
|
-
* Add eager_graph_with_options to model datasets, for specifying options specific to the eager_graph call (jeremyevans)
|
2140
|
-
|
2141
|
-
* Handle offsets on *_many associations when eager graphing when there are no associated results (jeremyevans)
|
2142
|
-
|
2143
|
-
* Make Database#register_array_type work without existing scalar conversion proc in the pg_array extension (jeremyevans)
|
2144
|
-
|
2145
|
-
* Handle presence validations on foreign keys in associated objects when creating new associated objects in the nested_attributes plugin (jeremyevans)
|
2146
|
-
|
2147
|
-
* Respect offsets when eager graphing *_one associations (jeremyevans)
|
2148
|
-
|
2149
|
-
* Add association_join to model datasets, for setting up joins based on associations (jeremyevans)
|
2150
|
-
|
2151
|
-
* Add one_through_many association to many_through_many plugin, for only returning a single record (jeremyevans)
|
2152
|
-
|
2153
|
-
* Add :graph_order association option, useful when :order needs to contain qualified identifiers (jeremyevans)
|
2154
|
-
|
2155
|
-
* Add one_through_one association, similar to many_to_many but only returning a single record (jeremyevans)
|
2156
|
-
|
2157
|
-
=== 4.7.0 (2014-02-01)
|
2158
|
-
|
2159
|
-
* Don't swallow underlying exception if there is an exception closing the cursor on PostgreSQL (jeremyevans) (#761)
|
2160
|
-
|
2161
|
-
* Recognize primary key unique constraint violations on MSSQL and SQLAnywhere (jeremyevans)
|
2162
|
-
|
2163
|
-
* Recognize composite unique constraint violations on SQLite (timcraft) (#758)
|
2164
|
-
|
2165
|
-
* Make #* method without arguments on SQL::Function return a Function with * prepended to the arguments (jeremyevans)
|
2166
|
-
|
2167
|
-
* Add #function to SQL::Identifier and SQL::QualifiedIdentifier, allowing for easy use of schema qualified functions or functions names that need quoting (jeremyevans)
|
2168
|
-
|
2169
|
-
* Add SQL::Function#distinct for easier creation of aggregate functions using DISTINCT (jeremyevans)
|
2170
|
-
|
2171
|
-
* Add SQL::Function#over for easier creation of window functions (jeremyevans)
|
2172
|
-
|
2173
|
-
* Don't clear validation instance_hooks until after a successful save (jeremyevans)
|
2174
|
-
|
2175
|
-
* Support :raise_on_save_failure option for one_to_many, pg_array_to_many, and many_to_pg_array associations (jeremyevans)
|
2176
|
-
|
2177
|
-
* Make SQLTime#to_s return a string in HH:MM:SS format, since it shouldn't include date information (jeremyevans)
|
2178
|
-
|
2179
|
-
* Support the Database#tables :schema option in the jdbc adapter (robbiegill, jeremyevans) (#755)
|
2180
|
-
|
2181
|
-
* Automatically rollback transactions in killed threads in ruby 2.0+ (chanks) (#752)
|
2182
|
-
|
2183
|
-
* Add update_or_create plugin, for updating an object if it exists, or creating such an object if it does not (jeremyevans)
|
2184
|
-
|
2185
|
-
* Make auto_validations uniqueness validations work correctly for STI subclasses (jeremyevans)
|
2186
|
-
|
2187
|
-
* Support :dataset option to validates_unique vaildation (jeremyevans)
|
2188
|
-
|
2189
|
-
=== 4.6.0 (2014-01-02)
|
2190
|
-
|
2191
|
-
* Add Database#call_mssql_sproc on MSSQL for calling stored procedures and handling output parameters (jrgns, jeremyevans) (#748)
|
2192
|
-
|
2193
|
-
* Handle RuntimeErrors raised by oci8 in the oracle adapter (jeremyevans)
|
2194
|
-
|
2195
|
-
* Support OFFSET/FETCH on Microsoft SQL Server 2012 (jeremyevans)
|
2196
|
-
|
2197
|
-
* Support :server option for Database#{commit,rollback}_prepared_transaction on PostgreSQL, MySQL, and H2 (jeremyevans) (#743)
|
2198
|
-
|
2199
|
-
* Do not attempt to eager load and raise an exception when doing Model.eager(...).naked.all (jeremyevans)
|
2200
|
-
|
2201
|
-
* Recognize a couple additional disconnect errors in the jdbc/postgresql adapter (jeremyevans) (#742)
|
2202
|
-
|
2203
|
-
=== 4.5.0 (2013-12-02)
|
2204
|
-
|
2205
|
-
* Support :on_commit=>(:drop|:delete_rows|:preserve_rows) options when creating temp tables on PostgreSQL (rosenfeld) (#737)
|
2206
|
-
|
2207
|
-
* Make Dataset#insert work on PostgreSQL if the table name is a SQL::PlaceholderLiteralString (jeremyevans) (#736)
|
2208
|
-
|
2209
|
-
* Copy unique constraints when emulating alter_table operations on SQLite (jeremyevans) (#735)
|
2210
|
-
|
2211
|
-
* Don't return clob column values as SQL::Blob instances in the db2 and ibmdb adapters unless use_clob_as_blob is true (jeremyevans)
|
2212
|
-
|
2213
|
-
* Make use_clob_as_blob false by default on DB2 (jeremyevans)
|
2214
|
-
|
2215
|
-
* Fix usage of Sequel::SQL::Blob objects as prepared statement arguments in jdbc/db2 adapter when use_clob_as_blob is false (jeremyevans)
|
2216
|
-
|
2217
|
-
* Add mssql_optimistic_locking plugin, using a timestamp/rowversion column to protect against concurrent updates (pinx, jeremyevans) (#731)
|
2218
|
-
|
2219
|
-
* Make Model.primary_key array immutable for composite keys (chanks) (#730)
|
2220
|
-
|
2221
|
-
=== 4.4.0 (2013-11-01)
|
2222
|
-
|
2223
|
-
* Make Database#tables not show tables in the recycle bin on Oracle (jeremyevans) (#728)
|
2224
|
-
|
2225
|
-
* Don't automatically order on all columns when emulating offsets for unordered datasets on DB2 (jeremyevans)
|
2226
|
-
|
2227
|
-
* Improve PostgreSQL type support in the jdbc/postgresql adapter (jeremyevans)
|
2228
|
-
|
2229
|
-
* Make offset emulation on Oracle work when using columns that can't be ordered (jeremyevans, sdeming) (#724, #725)
|
2230
|
-
|
2231
|
-
* Make filter by associations support handle associations with :conditions or block (jeremyevans)
|
2232
|
-
|
2233
|
-
* Make association cloning handle :block correctly for clones of clones (jeremyevans)
|
2234
|
-
|
2235
|
-
* Make association cloning handle :eager_block option correctly (jeremyevans)
|
2236
|
-
|
2237
|
-
* Make add_primary_key work on h2 (jeremyevans)
|
2238
|
-
|
2239
|
-
* Add support for foreign key parsing on Oracle (jeremyevans)
|
2240
|
-
|
2241
|
-
* Add support for foreign key parsing to the jdbc adapter (jeremyevans)
|
2242
|
-
|
2243
|
-
* Make add_foreign_key work on HSQLDB (jeremyevans)
|
2244
|
-
|
2245
|
-
* Add table_select plugin for selecting table.* instead of * for model datasets (jeremyevans)
|
2246
|
-
|
2247
|
-
* Issue constraint_validation table deletes before inserts, so modifying constraint via drop/add in same alter_table block works (jeremyevans)
|
2248
|
-
|
2249
|
-
* Support add_*/remove_*/remove_all_* pg_array_to_many association methods on unsaved model objects (jeremyevans)
|
2250
|
-
|
2251
|
-
* Add Sybase SQLAnywhere support via new sqlanywhere and jdbc/sqlanywhere adapters (gditrick, jeremyevans)
|
2252
|
-
|
2253
|
-
* Add Dataset#offset for setting the offset separately from the limit (Paul Henry, jeremyevans) (#717)
|
2254
|
-
|
2255
|
-
=== 4.3.0 (2013-10-02)
|
2256
|
-
|
2257
|
-
* Fix literalization of empty blobs on MySQL (jeremyevans) (#715)
|
2258
|
-
|
2259
|
-
* Ensure Dataset#page_count in pagination extension is at least one (jeremyevans) (#714)
|
2260
|
-
|
2261
|
-
* Recognize another disconnect error in the jdbc/as400 adapter (jeremyevans)
|
2262
|
-
|
2263
|
-
* Make Dataset#qualify and Sequel.delay work together (jeremyevans)
|
2264
|
-
|
2265
|
-
* Recognize citext type as string on PostgreSQL (isc) (#710)
|
2266
|
-
|
2267
|
-
* Support composite keys in the rcte_tree plugin (jeremyevans)
|
2268
|
-
|
2269
|
-
* Support composite keys in the tree plugin (jeremyevans)
|
2270
|
-
|
2271
|
-
* Make Migrator.migrator_class public (robertjpayne, jeremyevans) (#708)
|
2272
|
-
|
2273
|
-
* Make PostgreSQL empty array literalization work correctly on PostgreSQL <8.4 (jeremyevans)
|
2274
|
-
|
2275
|
-
* Add Sequel extensions guide (jeremyevans)
|
2276
|
-
|
2277
|
-
* Add model plugins guide (jeremyevans)
|
2278
|
-
|
2279
|
-
* Add error_sql Database extension, allowing DatabaseError#sql to return SQL query that caused underlying exception (jeremyevans)
|
2280
|
-
|
2281
|
-
* Make Dataset#each_page in pagination extension return enumerator if no block is given (justinj) (#702)
|
2282
|
-
|
2283
|
-
=== 4.2.0 (2013-09-01)
|
2284
|
-
|
2285
|
-
* Support custom :flags option in mysql2 adapter (jeremyevans) (#700)
|
2286
|
-
|
2287
|
-
* Add implementations of Dataset#freeze and Dataset#dup (jeremyevans)
|
2288
|
-
|
2289
|
-
* Add implementations of Model#dup and Model#clone (jeremyevans)
|
2290
|
-
|
2291
|
-
* Don't have partial_indexes returned by Database#indexes on MSSQL 2008+ (jeremyevans)
|
2292
|
-
|
2293
|
-
* Support partial indexes on SQLite 3.8.0+ (jeremyevans)
|
2294
|
-
|
2295
|
-
* Add Database#supports_partial_indexes? to check for partial index support (mluu, jeremyevans) (#698)
|
2296
|
-
|
2297
|
-
* The static_cache plugin now disallows saving/destroying if the :frozen=>false option is not used (jeremyevans)
|
2298
|
-
|
2299
|
-
* Support :frozen=>false option in static_cache plugin, for having new instances returned instead of frozen cached instances (jeremyevans)
|
2300
|
-
|
2301
|
-
* Add pg_static_cache_updater Database extension for listening for changes to tables and updating static_cache caches automatically (jeremyevans)
|
2302
|
-
|
2303
|
-
* Add mssql_emulate_lateral_with_apply extension for emulating LATERAL queries using CROSS/OUTER APPLY (jeremyevans)
|
2304
|
-
|
2305
|
-
* Support LATERAL queries via Dataset#lateral (jeremyevans)
|
2306
|
-
|
2307
|
-
* Add pg_loose_count Database extension, for fast approximate counts of PostgreSQL tables (jeremyevans)
|
2308
|
-
|
2309
|
-
* Add from_block Database extension, for having Database#from block affect FROM instead of WHERE (jeremyevans)
|
2310
|
-
|
2311
|
-
* Support :cursor_name option in postgres adapter Dataset#use_cursor (heeringa, jeremyevans) (#696)
|
2312
|
-
|
2313
|
-
* Fix placeholder literal strings when used with an empty placeholder hash (trydionel, jeremyevans) (#695)
|
2314
|
-
|
2315
|
-
=== 4.1.1 (2013-08-01)
|
2316
|
-
|
2317
|
-
* Fix select_map, select_order_map, and single_value methods on eager_graphed datasets (jeremyevans)
|
2318
|
-
|
2319
|
-
=== 4.1.0 (2013-08-01)
|
2320
|
-
|
2321
|
-
* Support :inherits option in Database#create_table on PostgreSQL, for table inheritance (jeremyevans)
|
2322
|
-
|
2323
|
-
* Handle dropping indexes for schema qualified tables on PostgreSQL (jeremyevans)
|
2324
|
-
|
2325
|
-
* Add Database#error_info on PostgreSQL 9.3+ if pg-0.16.0+ is used, to get a hash of metadata for a given database exception (jeremyevans)
|
2326
|
-
|
2327
|
-
* Allow prepared_statements plugin to work with instance_filters and update_primary_key plugins (jeremyevans)
|
2328
|
-
|
2329
|
-
* Support deferrable exclusion constraints on PostgreSQL using the :deferrable option (mfoody) (#687)
|
2330
|
-
|
2331
|
-
* Make Database#run and #<< accept SQL::PlaceholderLiteralString values (jeremyevans)
|
2332
|
-
|
2333
|
-
* Deprecate :driver option in odbc adapter since it appears to be broken (jeremyevans)
|
2334
|
-
|
2335
|
-
* Support :drvconnect option in odbc adapter for supplying the ODBC connection string directly (jeremyevans)
|
2336
|
-
|
2337
|
-
* Support mysql2 0.3.12+ result streaming via Dataset#stream (jeremyevans)
|
2338
|
-
|
2339
|
-
* Convert Java::JavaUtil::HashMap to ruby Hash in jdbc adapter, for better handling of PostgreSQL hstore type (jeremyevans) (#686)
|
2340
|
-
|
2341
|
-
* Raise NoMatchingRow if calling add_association with a primary key value that doesn't match an existing row (jeremyevans)
|
2342
|
-
|
2343
|
-
* Allow PostgreSQL add_constraint to support :not_valid option (jeremyevans)
|
2344
|
-
|
2345
|
-
* Allow CHECK constraints to have options by using an options hash as the constraint name (jeremyevans)
|
2346
|
-
|
2347
|
-
* Correctly raise error when using an invalid virtual row block function call (jeremyevans)
|
2348
|
-
|
2349
|
-
* Support REPLACE on SQLite via Dataset#replace and #multi_replace (etehtsea) (#681)
|
2350
|
-
|
2351
|
-
=== 4.0.0 (2013-07-01)
|
2352
|
-
|
2353
|
-
* Correctly parse composite primary keys on SQLite 3.7.16+ (jeremyevans)
|
2354
|
-
|
2355
|
-
* Recognize another disconnect error in the jdbc/oracle adapter (jeremyevans)
|
2356
|
-
|
2357
|
-
* Add pg_json_ops extension for calling JSON functions and operators in PostgreSQL 9.3+ (jeremyevans)
|
2358
|
-
|
2359
|
-
* Handle non-JSON plain strings, integers, and floats in PostgreSQL JSON columns in pg_json extension (jeremyevans)
|
2360
|
-
|
2361
|
-
* Dataset#from now accepts virtual row blocks (jeremyevans)
|
2362
|
-
|
2363
|
-
* Add Database#refresh_view on PostgreSQL to support refreshing materialized views (jeremyevans)
|
2364
|
-
|
2365
|
-
* Support the Database#drop_view :if_exists option on PostgreSQL (jeremyevans)
|
2366
|
-
|
2367
|
-
* Support the Database#{create,drop}_view :materialized option for creating materialized views in PostgreSQL 9.3+ (jeremyevans)
|
2368
|
-
|
2369
|
-
* Support the Database#create_view :recursive option for creating recursive views in PostgreSQL 9.3+ (jeremyevans)
|
2370
|
-
|
2371
|
-
* Support the Database#create_view :columns option for using explicit columns (jeremyevans)
|
2372
|
-
|
2373
|
-
* Support the Database#create_schema :owner and :if_not_exists options on PostgreSQL (jeremyevans)
|
2374
|
-
|
2375
|
-
* Support :index_type=>:gist option to create GIST full text indexes on PostgreSQL (jeremyevans)
|
2376
|
-
|
2377
|
-
* Add Postgres::ArrayOp#replace for the array_replace function in PostgreSQL 9.3+ (jeremyevans)
|
2378
|
-
|
2379
|
-
* Add Postgres::ArrayOp#remove for the array_remove function in PostgreSQL 9.3+ (jeremyevans)
|
2380
|
-
|
2381
|
-
* Add Postgres::ArrayOp#hstore for creating hstores from arrays (jeremyevans)
|
2382
|
-
|
2383
|
-
* Make Postgres::ArrayOp#[] return ArrayOp if given a range (jeremyevans)
|
2384
|
-
|
2385
|
-
* Ensure that CHECK constraints are surrounded with parentheses (jeremyevans)
|
2386
|
-
|
2387
|
-
* Ensure Dataset#unbind returned variable hash uses symbol keys (jeremyevans)
|
2388
|
-
|
2389
|
-
* Add pg_array_associations plugin, for associations based on PostgreSQL arrays containing foreign keys (jeremyevans)
|
2390
|
-
|
2391
|
-
* Add Sequel.deep_qualify, for easily doing a deep qualification (jeremyevans)
|
2392
|
-
|
2393
|
-
* Enable use of window functions for limited eager loading by default (jeremyevans)
|
2394
|
-
|
2395
|
-
* Handle offsets correctly when eager loading one_to_one associations (jeremyevans)
|
2396
|
-
|
2397
|
-
* Raise exception for infinite and NaN floats on MySQL (jeremyevans) (#677)
|
2398
|
-
|
2399
|
-
* Make dataset string literalization that requires database connection use dataset's chosen server (jeremyevans)
|
2400
|
-
|
2401
|
-
* Make sure an offset without a limit is handled correctly when eager loading (jeremyevans)
|
2402
|
-
|
2403
|
-
* Allow providing ranges as subscripts for array[start:end] (jeremyevans)
|
2404
|
-
|
2405
|
-
* Prepare one_to_one associations in the prepared_statements_associations plugin (jeremyevans)
|
2406
|
-
|
2407
|
-
* Use prepared statements when the association has :conditions in the prepared_statements_associations plugin (jeremyevans)
|
2408
|
-
|
2409
|
-
* Fix prepared statement usage in some additional cases in the prepared_statements_associations plugin (jeremyevans)
|
2410
|
-
|
2411
|
-
* Hex escape blob input on MySQL (jeremyevans)
|
2412
|
-
|
2413
|
-
* Handle more disconnect errors when using the postgres adapter with the postgres-pr driver (jeremyevans)
|
2414
|
-
|
2415
|
-
* Model#setter_methods private method now accepts 1 argument instead of 2 (jeremyevans)
|
2416
|
-
|
2417
|
-
* Model#set_restricted and #update_restricted private methods now accept 2 arguments instead of 3 (jeremyevans)
|
2418
|
-
|
2419
|
-
* ungraphed on an eager_graph dataset now resets the original row_proc (jeremyevans)
|
2420
|
-
|
2421
|
-
* eager_graph now returns a naked dataset (jeremyevans)
|
2422
|
-
|
2423
|
-
* All behavior deprecated in Sequel 3.48.0 has been removed (jeremyevans)
|
2424
|
-
|
2425
|
-
* Make adapter/integration spec environment variables more consistent (jeremyevans)
|
2426
|
-
|
2427
|
-
* Sequel no longer provides default databases for adapter/integration specs (jeremyevans)
|
2428
|
-
|
2429
|
-
* Model#save no longer calls #_refresh internally (jeremyevans)
|
2430
|
-
|
2431
|
-
* Model#set_all and #update_all can now update the primary key (jeremyevans)
|
2432
|
-
|
2433
|
-
* Integrate many_to_one_pk_lookup and association_autoreloading plugins into main associations plugin (jeremyevans)
|
2434
|
-
|
2435
|
-
* Make defaults_setter plugin operate in a lazy manner (jeremyevans)
|
2436
|
-
|
2437
|
-
* Plugins now extend the model class with ClassMethods before including InstanceMethods (jeremyevans)
|
2438
|
-
|
2439
|
-
* Remove Model::EMPTY_INSTANCE_VARIABLES (jeremyevans)
|
2440
|
-
|
2441
|
-
* Model.raise_on_typecast_failure now defaults to false (jeremyevans)
|
2442
|
-
|
2443
|
-
* Model#_save private method now only takes a single argument (jeremyevans)
|
2444
|
-
|
2445
|
-
* Remove Dataset#columns_without_introspection from columns_introspection extension (jeremyevans)
|
2446
|
-
|
2447
|
-
* Make boolean prepared statement arguments work on sqlite adapter when integer_booleans is true (jeremyevans)
|
2448
|
-
|
2449
|
-
* Make Database#tables and #views reflect search_path on PostgreSQL (jeremyevans)
|
2450
|
-
|
2451
|
-
* SQLite now defaults to true for integer_booleans and false for use_timestamp_timezones (jeremyevans)
|
2452
|
-
|
2453
|
-
* Make the default value for most option hashes a shared frozen hash (jeremyevans)
|
2454
|
-
|
2455
|
-
* Remove Sequel::NotImplemented exception (jeremyevans)
|
2456
|
-
|
2457
|
-
* Automatically alias single expressions in Dataset#get, #select_map, and #select_order_map, to work around possible DoS issues (jeremyevans)
|
2458
|
-
|
2459
|
-
* Use a connection queue instead of stack by default for threaded connection pools (jeremyevans)
|
2460
|
-
|
2461
|
-
* Remove SQL::SQLArray alias for SQL::ValueList (jeremyevans)
|
2462
|
-
|
2463
|
-
* Remove SQL::NoBooleanInputMethods empty module (jeremyevans)
|
2464
|
-
|
2465
941
|
=== Older
|
2466
942
|
|
2467
943
|
See doc/CHANGELOG.old
|