--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Prepares statement <em>sql</em> with name <em>name</em> to be executed later. Sends prepare command asynchronously, and returns immediately. On failure, it raises a PGError exception.
- !ruby/struct:SM::Flow::P 
  body: <tt>param_types</tt> is an optional parameter to specify the Oids of the types of the parameters.
- !ruby/struct:SM::Flow::P 
  body: If the types are not specified, they will be inferred by PostgreSQL. Instead of specifying type oids, it's recommended to simply add explicit casts in the query to ensure that the right type is used.
- !ruby/struct:SM::Flow::P 
  body: "For example: &quot;SELECT $1::int&quot;"
- !ruby/struct:SM::Flow::P 
  body: PostgreSQL bind parameters are represented as $1, $1, $2, etc., inside the SQL query.
full_name: PGconn#send_prepare
is_singleton: false
name: send_prepare
params: |
  conn.send_prepare( stmt_name, sql [, param_types ] ) -> nil

visibility: public
