Class: Sequel::JDBC::H2::Dataset

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

Dataset class for H2 datasets accessed via JDBC.

### Methods

literal

### Public Instance methods

literal(v)

Use H2 syntax for Date, DateTime, and Time types.

[Source]

        # File lib/sequel_core/adapters/jdbc/h2.rb, line 56
    56:         def literal(v)
    57:           case v
    58:           when Date
    59:             v.strftime("DATE '%Y-%m-%d'")
    60:           when DateTime, Time
    61:             v.strftime("TIMESTAMP '%Y-%m-%d %H:%M:%S'")
    62:           else
    63:             super
    64:           end
    65:         end

[Validate]