Class Sequel::Mock::Connection
In: lib/sequel/adapters/mock.rb
Parent: Object

Connection class for Sequel‘s mock adapter.

Methods

execute   new  

Attributes

db  [R]  Sequel::Mock::Database object that created this connection
opts  [R]  The specific database options for this connection.
server  [R]  Shard this connection operates on, when using Sequel‘s sharding support (always :default for databases not using sharding).

Public Class methods

Store the db, server, and opts.

[Source]

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

Public Instance methods

Delegate to the db‘s _execute method.

[Source]

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

[Validate]