File: 4.47.0.txt

package info (click to toggle)
ruby-sequel 5.63.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 10,408 kB
  • sloc: ruby: 113,747; makefile: 3
file content (56 lines) | stat: -rw-r--r-- 2,134 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
= Deprecated Features

* Setting an invalid dataset for a model is now deprecated.
  Historically, Sequel has swallowed exceptions for this to keep
  backwards compatibility, but it generally just results in code
  breaking later.  To allow invalid datasets to be used:

    Sequel::Model.require_valid_table = false

* The association_autoreloading and many_to_one_pk_lookup plugins
  are now deprecated.  They were moved from plugins to standard
  model behavior in Sequel 4.0, and have been no-ops since.

* The pg_typecast_on_load plugin is now deprecated.  It is only useful
  on the already deprecated do and swift adapters.

= New Features

* Database#with_server in the server_block extension now accepts an
  optional second argument for the read only server to use.  This
  allows for overriding the default server while providing a separate
  default for read only queries:

    DB.with_server(:server1, :server1ro) do
      DB[:a].all       # Uses server1ro
      DB[:b].insert(1) # Uses server1
    end

* Model.default_association_type_options has been added, allowing the
  ability to set default options per association type.  This can be
  used to make some association types read_only by default:

    opts = Sequel::Model.default_association_type_options
    opts[:one_to_many] = opts[:many_to_many] = {:read_only=>true}
  
* Database#views on PostgreSQL now accepts a :materialized option to
  return materialized views instead of regular views.

= Other Improvements

* Setting Sequel::Model.require_valid_table = true no longer raises
  an exception when using a valid dataset that selects from a subquery
  or table returning function or uses a join.

* The defaults_setter plugin now inherits any custom default
  values when subclassing.

* The schema_dumper extension now handles Oracle 11g XE behavior of
  appending not null to the database type.

= Backwards Compatibility

* External callers of Database#check_non_connection_error (private
  method) should update their code to call it with a true or false
  argument specifying whether to raise an error for exceptions that
  are not connection errors.