Class | Sequel::Informix::Database
In: | lib/sequel/adapters/informix.rb
Parent: | Sequel::Database

### Methods

connect dataset do execute execute_dui query

### Constants

TEMPORARY | = | 'TEMP '.freeze

### Public Instance methods

connect(server)

[Source]

        # File lib/sequel/adapters/informix.rb, line 11
    11:       def connect(server)
    12:         opts = server_opts(server)
    13:         ::Informix.connect(opts[:database], opts[:user], opts[:password])
    14:       end

dataset(opts = nil)

[Source]

        # File lib/sequel/adapters/informix.rb, line 16
    16:       def dataset(opts = nil)
    17:         Sequel::Informix::Dataset.new(self, opts)
    18:       end

do(sql, opts={})

Alias for execute_dui

execute(sql, opts={}) {|c.cursor(sql)}| ...}

[Source]

        # File lib/sequel/adapters/informix.rb, line 27
    27:       def execute(sql, opts={})
    28:         log_info(sql)
    29:         synchronize(opts[:server]){|c| yield c.cursor(sql)}
    30:       end

execute_dui(sql, opts={})

Returns number of rows affected

[Source]

        # File lib/sequel/adapters/informix.rb, line 21
    21:       def execute_dui(sql, opts={})
    22:         log_info(sql)
    23:         synchronize(opts[:server]){|c| c.immediate(sql)}
    24:       end

query(sql, opts={})

Alias for execute

[Validate]