Sha256: 249b6fb3553d6580f8a32443513840421c8d9bb25dfa082c28e57f9d7ce57e58

Contents?: true

Size: 957 Bytes

Versions: 103

Compression:

Stored size: 957 Bytes

Contents

= New Features

* A constant_sql_override Database extension has been added, allowing
  for overriding the SQL used by constants such as
  Sequel::CURRENT_TIMESTAMP.  This can be used to force
  CURRENT_TIMESTAMP to be literalized at a particular time zone:

    DB.extension :constant_sql_override
    DB.set_constant_sql(Sequel::CURRENT_TIMESTAMP,
      "CURRENT_TIMESTAMP AT TIME ZONE 'UTC'")

* Prepared statements now support the :single_value type, which
  returns the first column value in the dataset.

    prep_stmt = DB[:table].select(:column).prepare(:single_value, :ps)
    prep_stmt.call
    # PREPARE ps AS SELECT column FROM table LIMIT 1;
    # EXECUTE ps;
    # => 42

= Other Improvements

* Dataset#from_self will no longer use a cached dataset if any options
  are given, as that can result in incorrect behavior.

* Model.all in the static_cache plugin now accepts a block, mirroring
  the API when the static_cache plugin is not used.

Version data entries

103 entries across 89 versions & 2 rubygems

Version Path
sequel-5.83.1 doc/release_notes/5.13.0.txt
sequel-5.83.0 doc/release_notes/5.13.0.txt
sequel-5.82.0 doc/release_notes/5.13.0.txt
sequel-5.81.0 doc/release_notes/5.13.0.txt
sequel-5.80.0 doc/release_notes/5.13.0.txt
sequel-5.79.0 doc/release_notes/5.13.0.txt
sequel-5.78.0 doc/release_notes/5.13.0.txt
sequel-5.77.0 doc/release_notes/5.13.0.txt
sequel-5.76.0 doc/release_notes/5.13.0.txt
sequel-5.75.0 doc/release_notes/5.13.0.txt
sequel-5.74.0 doc/release_notes/5.13.0.txt
sequel-5.73.0 doc/release_notes/5.13.0.txt
sequel-5.72.0 doc/release_notes/5.13.0.txt
sequel-5.71.0 doc/release_notes/5.13.0.txt
sequel-5.70.0 doc/release_notes/5.13.0.txt
sequel-5.69.0 doc/release_notes/5.13.0.txt
sequel-5.68.0 doc/release_notes/5.13.0.txt
sequel-5.67.0 doc/release_notes/5.13.0.txt
sequel-5.66.0 doc/release_notes/5.13.0.txt
sequel-5.65.0 doc/release_notes/5.13.0.txt