module Sequel::IdentifierMangling::DatasetMethods

  1. lib/sequel/extensions/identifier_mangling.rb

Public Instance methods

identifier_input_method()

The String instance method to call on identifiers before sending them to the database.

[show source]
    # File lib/sequel/extensions/identifier_mangling.rb
133 def identifier_input_method
134   @opts.fetch(:identifier_input_method, db.identifier_input_method)
135 end
identifier_output_method()

The String instance method to call on identifiers before sending them to the database.

[show source]
    # File lib/sequel/extensions/identifier_mangling.rb
139 def identifier_output_method
140   @opts.fetch(:identifier_output_method, db.identifier_output_method)
141 end
quote_identifiers?()

Check with the database to see if identifier quoting is enabled

[show source]
    # File lib/sequel/extensions/identifier_mangling.rb
144 def quote_identifiers?
145   @opts.fetch(:quote_identifiers, db.quote_identifiers?)
146 end
with_identifier_input_method(meth)

Return a modified dataset with identifier_input_method set.

[show source]
    # File lib/sequel/extensions/identifier_mangling.rb
149 def with_identifier_input_method(meth)
150   clone(:identifier_input_method=>meth, :skip_symbol_cache=>true)
151 end
with_identifier_output_method(meth)

Return a modified dataset with identifier_output_method set.

[show source]
    # File lib/sequel/extensions/identifier_mangling.rb
154 def with_identifier_output_method(meth)
155   clone(:identifier_output_method=>meth)
156 end