Postgrex v0.12.1 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 and extension for each parameter;param_formats- List of formats for each parameters encoded to;encoders- List of anonymous functions to encode each parameter;columns- The column names;result_info- List of oid, type info and extension for each column;result_formats- List of formats for each column is decoded from;decoders- List of anonymous functions to decode each column;types- The type server table to fetch the type information from;null- Atom to use as a stand in for postgres’NULL;copy_data- Whether the query should send the final parameter as data to copy to the database;
Summary
Types
t :: %Postgrex.Query{columns: [String.t] | nil, copy_data: boolean, decoders: [(binary -> term)] | nil, encoders: [(term -> iodata)] | nil, name: iodata, null: atom, param_formats: [:binary | :text] | nil, param_info: [{Postgrex.Types.oid, Postgrex.TypeInfo.t, module | nil}] | nil, ref: term, result_formats: [:binary | :text] | nil, result_info: [{Postgrex.Types.oid, Postgrex.TypeInfo.t, module | nil}] | nil, statement: iodata, types: Postgrex.TypeServer.table | nil}