Class Index [+]

Quicksearch

Sequel::Dataset::StoredProcedures

Public Instance Methods

call_sproc(type, name, *args) click to toggle source

For the given type (:select, :first, :insert, :update, or :delete), run the database stored procedure with the given name with the given arguments.

    # File lib/sequel/adapters/utils/stored_procedures.rb, line 52
52:       def call_sproc(type, name, *args)
53:         prepare_sproc(type, name).call(*args)
54:       end
prepare_sproc(type, name) click to toggle source

Transform this dataset into a stored procedure that you can call multiple times with new arguments.

    # File lib/sequel/adapters/utils/stored_procedures.rb, line 58
58:       def prepare_sproc(type, name)
59:         sp = clone
60:         prepare_extend_sproc(sp)
61:         sp.sproc_type = type
62:         sp.sproc_name = name
63:         sp
64:       end

Private Instance Methods

prepare_extend_sproc(ds) click to toggle source

Extend the dataset with the stored procedure methods.

    # File lib/sequel/adapters/utils/stored_procedures.rb, line 69
69:       def prepare_extend_sproc(ds)
70:         ds.extend(StoredProcedureMethods)
71:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.