query uses writeQuery to recursively construct a minified query string from the provided struct v. E.g., struct{Foo Int, BarBaz *Boolean} -> "{foo,barBaz}".
(v any)
| 113 | // |
| 114 | // E.g., struct{Foo Int, BarBaz *Boolean} -> "{foo,barBaz}". |
| 115 | func query(v any) string { |
| 116 | var buf bytes.Buffer |
| 117 | writeQuery(&buf, reflect.TypeOf(v), false) |
| 118 | return buf.String() |
| 119 | } |
| 120 | |
| 121 | // writeQuery writes a minified query for t to w. |
| 122 | // If inline is true, the struct fields of t are inlined into parent struct. |
no test coverage detected