Class Index [+]

Quicksearch

Deprecation Warnings

The main change in Sequel 3.48.0 is the deprecation of Sequel features that will be modified, moved, or removed in Sequel 4. For the reasoning behind these changes, please review the commits logs at github.com/jeremyevans/sequel-4-plans/commits/master

Deprecation Logging

If you use a deprecated method or feature, Sequel will by default print a deprecation message and 10 lines of backtrace to stderr to easily allow you to figure out which code needs to be updated. You can change where the deprecation messages go and how many lines of backtrace are given using the following:

# Log deprecation information to a file
Sequel::Deprecation.output = File.open('deprecated.txt', 'wb')

# Turn off all deprecation logging
Sequel::Deprecation.output = nil

# Use 5 lines of backtrace when logging deprecation messages
Sequel::Deprecation.backtrace_filter = 5

# Use all backtrace lines when logging deprecation messages
Sequel::Deprecation.backtrace_filter = true

# Don't include backtraces in the deprecation logging
Sequel::Deprecation.backtrace_filter = false

# Select which backtrace lines to output
Sequel::Deprecation.backtrace_filter = \
  lambda{|line, line_no| line_no < 3 || line =~ /my_app/}

Major Change

Core Behavior Changes

Adapter Behavior Changes

Extension Behavior Changes

Model Behavior Changes

Plugin Behavior Changes

Internal Changes

Forwards Compatibility

Not all changes planned in Sequel 4 have deprecation warnings. The following changes will be made in Sequel 4 but do not have deprecation warnings in 3.48.0:

New Features

Other Improvements

Backwards Compatibility

[Validate]

Generated with the Darkfish Rdoc Generator 2.