(stmtName, query string)
| 79 | } |
| 80 | |
| 81 | func parseFrame(stmtName, query string) []byte { |
| 82 | var body bytes.Buffer |
| 83 | body.WriteString(stmtName) |
| 84 | body.WriteByte(0) |
| 85 | body.WriteString(query) |
| 86 | body.WriteByte(0) |
| 87 | _ = binary.Write(&body, binary.BigEndian, int16(0)) // no parameter types |
| 88 | return pgFrame(wire.MsgParse, body.Bytes()) |
| 89 | } |
| 90 | |
| 91 | func bindFrame(portalName, stmtName string) []byte { |
| 92 | var body bytes.Buffer |
no test coverage detected