Method: Sequel::Mock::Database#execute

Defined in:
lib/sequel/adapters/mock.rb

#execute(sql, opts = OPTS, &block) ⇒ Object Also known as: execute_ddl

Store the sql used for later retrieval with #sqls, and return the appropriate value using either the #autoid, #fetch, or #numrows methods.

[View source]

111
112
113
# File 'lib/sequel/adapters/mock.rb', line 111

def execute(sql, opts=OPTS, &block)
  synchronize(opts[:server]){|c| _execute(c, sql, opts, &block)} 
end