class Sequel::Mock::Connection
Attributes
Sequel::Mock::Database
object that created this connection
The specific database options for this connection.
Shard this connection operates on, when using Sequel’s sharding support (always :default for databases not using sharding).
Public Class Methods
Source
# File lib/sequel/adapters/mock.rb 20 def initialize(db, server, opts) 21 @db = db 22 @server = server 23 @opts = opts 24 end
Store the db, server, and opts.
Public Instance Methods
Source
# File lib/sequel/adapters/mock.rb 27 def execute(sql) 28 @db.send(:_execute, self, sql, :log=>false) 29 end
Delegate to the db’s _execute method.