Class: Sequel::Informix::Database

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

### Methods

connect dataset do execute execute_dui query

### Public Instance methods

connect(server)

[Source]

        # File lib/sequel_core/adapters/informix.rb, line 8
     8:       def connect(server)
     9:         opts = server_opts(server)
    10:         ::Informix.connect(opts[:database], opts[:user], opts[:password])
    11:       end

dataset(opts = nil)

[Source]

        # File lib/sequel_core/adapters/informix.rb, line 13
    13:       def dataset(opts = nil)
    14:         Sequel::Informix::Dataset.new(self, opts)
    15:       end

do(sql, opts={})

Alias for execute_dui

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

[Source]

        # File lib/sequel_core/adapters/informix.rb, line 24
    24:       def execute(sql, opts={})
    25:         log_info(sql)
    26:         synchronize(opts[:server]){|c| yield c.cursor(sql)}
    27:       end

execute_dui(sql, opts={})

Returns number of rows affected

[Source]

        # File lib/sequel_core/adapters/informix.rb, line 18
    18:       def execute_dui(sql, opts={})
    19:         log_info(sql)
    20:         synchronize(opts[:server]){|c| c.immediate(sql)}
    21:       end

query(sql, opts={})

Alias for execute

[Validate]