Prepares the statement query with stmt_name to be executed later

num_params specifies the number of parameters expected at the statement execution.

See exec_prepared for execution.

Property definitions

postgresql $ Postgres :: prepare
  # Prepares the statement `query` with `stmt_name` to be executed later
  #
  # `num_params` specifies the number of parameters expected at the statement
  # execution.
  #
  # See `exec_prepared` for execution.
  fun prepare(stmt_name:String, query:String, num_params: Int):PGResult do return new PGResult(native_connection.prepare(stmt_name, query, num_params))
lib/postgresql/postgres.nit:83,3--89,151