module
TDS::StatementMethods
Direct including types
Defined in:
tds/statement_methods.crInstance Method Summary
- #conn
-
#parameterize(command : String, arguments : Array(Parameter)) : Tuple(String, Array(String), Array(Parameter))
Replaces
?
placeholders with@P$n__
where n = 0..n placeholders in the given SQL statement, returning the updated statement, and array of parameter names and types forsp_prepare
orsp_executesql
- #parameterize(args : Enumerable) : Tuple(String, Array(Parameter))
- #perform_exec(args : Enumerable) : DB::ExecResult
- #perform_query(args : Enumerable) : DB::ResultSet
- #requestType : RpcRequest::Type
Instance Method Detail
def parameterize(command : String, arguments : Array(Parameter)) : Tuple(String, Array(String), Array(Parameter))
#
Replaces ?
placeholders with @P$n__
where n = 0..n placeholders in
the given SQL statement, returning the updated statement, and array of
parameter names and types for sp_prepare
or sp_executesql