ExecParams appends an ExecParams command to the batch. See PgConn.ExecParams for parameter descriptions.
(sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats, resultFormats []int16)
| 1931 | |
| 1932 | // ExecParams appends an ExecParams command to the batch. See PgConn.ExecParams for parameter descriptions. |
| 1933 | func (batch *Batch) ExecParams(sql string, paramValues [][]byte, paramOIDs []uint32, paramFormats, resultFormats []int16) { |
| 1934 | if batch.err != nil { |
| 1935 | return |
| 1936 | } |
| 1937 | |
| 1938 | batch.buf, batch.err = (&pgproto3.Parse{Query: sql, ParameterOIDs: paramOIDs}).Encode(batch.buf) |
| 1939 | if batch.err != nil { |
| 1940 | return |
| 1941 | } |
| 1942 | batch.ExecPrepared("", paramValues, paramFormats, resultFormats) |
| 1943 | } |
| 1944 | |
| 1945 | // ExecPrepared appends an ExecPrepared e command to the batch. See PgConn.ExecPrepared for parameter descriptions. |
| 1946 | func (batch *Batch) ExecPrepared(stmtName string, paramValues [][]byte, paramFormats, resultFormats []int16) { |