Class Sequel::JDBC::H2::Dataset
In: lib/sequel/adapters/jdbc/h2.rb
Parent: JDBC::Dataset

Dataset class for H2 datasets accessed via JDBC.

Methods

Constants

APOS = Dataset::APOS
HSTAR = "H*".freeze
ILIKE_PLACEHOLDER = ["CAST(".freeze, " AS VARCHAR_IGNORECASE)".freeze].freeze
TIME_FORMAT = "'%H:%M:%S'".freeze
ONLY_OFFSET = " LIMIT -1 OFFSET ".freeze

Public Instance methods

Emulate the case insensitive LIKE operator and the bitwise operators.

[Source]

     # File lib/sequel/adapters/jdbc/h2.rb, line 162
162:         def complex_expression_sql_append(sql, op, args)
163:           case op
164:           when :ILIKE, "NOT ILIKE""NOT ILIKE"
165:             super(sql, (op == :ILIKE ? :LIKE : "NOT LIKE""NOT LIKE"), [SQL::PlaceholderLiteralString.new(ILIKE_PLACEHOLDER, [args.at(0)]), args.at(1)])
166:           when :&, :|, :^, :<<, :>>, 'B~''B~'
167:             complex_expression_emulate_append(sql, op, args)
168:           else
169:             super
170:           end
171:         end

H2 requires SQL standard datetimes

[Source]

     # File lib/sequel/adapters/jdbc/h2.rb, line 179
179:         def requires_sql_standard_datetimes?
180:           true
181:         end

H2 does not support derived column lists

[Source]

     # File lib/sequel/adapters/jdbc/h2.rb, line 174
174:         def supports_derived_column_lists?
175:           false
176:         end

H2 doesn‘t support IS TRUE

[Source]

     # File lib/sequel/adapters/jdbc/h2.rb, line 184
184:         def supports_is_true?
185:           false
186:         end

H2 doesn‘t support JOIN USING

[Source]

     # File lib/sequel/adapters/jdbc/h2.rb, line 189
189:         def supports_join_using?
190:           false
191:         end

H2 doesn‘t support multiple columns in IN/NOT IN

[Source]

     # File lib/sequel/adapters/jdbc/h2.rb, line 194
194:         def supports_multiple_column_in?
195:           false
196:         end

[Validate]