Module: Sequel::Dataset::StoredProcedures

Module | Sequel::Dataset::StoredProcedures
In: | lib/sequel_core/dataset/stored_procedures.rb

### Methods

call_sproc prepare_sproc

### Public Instance methods

call_sproc(type, name, *args)

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

[Source]

        # File lib/sequel_core/dataset/stored_procedures.rb, line 53
    53:       def call_sproc(type, name, *args)
    54:         prepare_sproc(type, name).call(*args)
    55:       end

prepare_sproc(type, name)

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

[Source]

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

[Validate]