Parent

Methods

Class Index [+]

Quicksearch

Sequel::Mock::Connection

Connection class for Sequel’s mock adapter.

Attributes

db[R]

Sequel::Mock::Database object that created this connection

server[R]

Shard this connection operates on, when using Sequel’s sharding support (always :default for databases not using sharding).

opts[R]

The specific database options for this connection.

Public Class Methods

new(db, server, opts) click to toggle source

Store the db, server, and opts.

    # File lib/sequel/adapters/mock.rb, line 17
17:       def initialize(db, server, opts)
18:         @db = db
19:         @server = server
20:         @opts = opts
21:       end

Public Instance Methods

execute(sql) click to toggle source

Delegate to the db’s #_execute method.

    # File lib/sequel/adapters/mock.rb, line 24
24:       def execute(sql)
25:         @db.send(:_execute, self, sql, :log=>false) 
26:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.