Postgrex v1.0.0-rc.0 Postgrex.Query

Query struct returned from a successfully prepared query. Its fields are:

  • name - The name of the prepared statement;
  • statement - The prepared statement;
  • param_info - List of oids, type info, extension and options for each parameter;
  • param_formats - List of formats for each parameters encoded to;
  • columns - The column names;
  • result_info - List of oid, type info, extension and options for each column;
  • result_formats - List of formats for each column is decoded from;
  • types - The type server table to fetch the type information from;
  • null - Atom to use as a stand in for postgres’ NULL;

Summary

Types

t()
t :: %Postgrex.Query{columns: [String.t] | nil, name: iodata, null: atom, param_formats: [:binary | :text] | nil, param_info: [type_info] | nil, ref: term, result_formats: [:binary | :text] | nil, result_info: [type_info] | nil, statement: iodata, types: Postgrex.TypeServer.table | nil}