Len returns the number of parts in the query.
()
| 141 | |
| 142 | // Len returns the number of parts in the query. |
| 143 | func (q *Query) Len() int { |
| 144 | if q == nil { |
| 145 | return 0 |
| 146 | } |
| 147 | return len(q.parts) |
| 148 | } |
| 149 | |
| 150 | // ToSQL generates PostgreSQL-compatible SQL with $1, $2, ... placeholders. |
| 151 | // Returns the SQL string, parameters slice, and any error. |
no outgoing calls