MCPcopy
hub / github.com/pocketbase/pocketbase / CreateViewFields

Method CreateViewFields

core/app.go:268–268  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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).

Calls

no outgoing calls