Module for holding all MySQL-related classes and modules for Sequel.
Mapping of type numbers to conversion procs
Use only a single proc for each type to save on memory
By default, Sequel raises an exception if in invalid date or time is used. However, if this is set to nil or :nil, the adapter treats dates like 0000-00-00 and times like 838:00:00 as nil values. If set to :string, it returns the strings as is.
Set the default charset used for CREATE TABLE. You can pass the :charset option to create_table to override this setting.
If convert_invalid_date_time is nil, :nil, or :string and the conversion raises an InvalidValue exception, return v if :string and nil otherwise.
# File lib/sequel/adapters/mysql.rb, line 50 def self.convert_date_time(meth, v) begin Sequel.send(meth, v) rescue InvalidValue case @convert_invalid_date_time when nil, :nil nil when :string v else raise end end end
Generated with the Darkfish Rdoc Generator 2.