CreateViewFields creates a new FieldsList from the provided select query. There are some caveats: - The select query must have an "id" column. - Wildcard ("*") columns are not supported to avoid accidentally leaking sensitive data. NB! Be aware that this method is vulnerable to SQL injection and t
(dangerousSelectQuery string)
| 266 | // NB! Be aware that this method is vulnerable to SQL injection and the |
| 267 | // "dangerousSelectQuery" argument must come only from trusted input! |
| 268 | CreateViewFields(dangerousSelectQuery string) (FieldsList, error) |
| 269 | |
| 270 | // DryRunView executes the provided query by creating a temporary view |
| 271 | // collection and returning a sample of the resulting query records (if valid). |
no outgoing calls