WriteString appends the provided string to the query and extracts any parameters from it.
(part string)
| 22 | |
| 23 | // WriteString appends the provided string to the query and extracts any parameters from it. |
| 24 | func (qb *Builder) WriteString(part string) { |
| 25 | params := getParams(part) |
| 26 | |
| 27 | qb.params = append(qb.params, params...) |
| 28 | |
| 29 | qb.query.WriteString(part) |
| 30 | } |
| 31 | |
| 32 | // HasParam checks whether the Builder has a parameter of the given name. |
| 33 | func (qb *Builder) HasParam(name string) bool { |
no test coverage detected