Class: Sequel::JDBC::MySQL::Dataset

Class | Sequel::JDBC::MySQL::Dataset
In: | lib/sequel_core/adapters/jdbc/mysql.rb
Parent: | JDBC::Dataset

Dataset class for MySQL datasets accessed via JDBC.

### Methods

insert literal replace

### Included Modules

Sequel::MySQL::DatasetMethods

### Public Instance methods

insert(*values)

Use execute_insert to execute the insert_sql.

[Source]

        # File lib/sequel_core/adapters/jdbc/mysql.rb, line 45
    45:         def insert(*values)
    46:           execute_insert(insert_sql(*values))
    47:         end

literal(v)

Handle time types correctly

[Source]

        # File lib/sequel_core/adapters/jdbc/mysql.rb, line 50
    50:         def literal(v)
    51:           case v
    52:           when Time, DateTime
    53:             v.strftime("'%Y-%m-%d %H:%M:%S'")
    54:           else
    55:             super
    56:           end
    57:         end

replace(*args)

Use execute_insert to execute the replace_sql.

[Source]

        # File lib/sequel_core/adapters/jdbc/mysql.rb, line 60
    60:         def replace(*args)
    61:           execute_insert(replace_sql(*args))
    62:         end

[Validate]