Class Index [+]

Quicksearch

Sequel::MySQL::PreparedStatements::DatabaseMethods

Public Instance Methods

call_sproc(name, opts={}, &block) click to toggle source

Support stored procedures on MySQL

    # File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 10
10:         def call_sproc(name, opts={}, &block)
11:           args = opts[:args] || [] 
12:           execute("CALL #{name}#{args.empty? ? '()' : literal(args)}", opts.merge(:sproc=>false), &block)
13:         end
execute(sql, opts={}, &block) click to toggle source

Executes the given SQL using an available connection, yielding the connection if the block is given.

    # File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 17
17:         def execute(sql, opts={}, &block)
18:           if opts[:sproc]
19:             call_sproc(sql, opts, &block)
20:           elsif sql.is_a?(Symbol)
21:             execute_prepared_statement(sql, opts, &block)
22:           else
23:             synchronize(opts[:server]){|conn| _execute(conn, sql, opts, &block)}
24:           end
25:         end

Private Instance Methods

add_prepared_statements_cache(conn) click to toggle source
    # File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 29
29:         def add_prepared_statements_cache(conn)
30:           class << conn
31:             attr_accessor :prepared_statements
32:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.