MCPcopy
hub / github.com/pocketbase/pocketbase / ModelQuery

Method ModelQuery

core/db.go:67–69  ·  view source on GitHub ↗

ModelQuery creates a new preconfigured select data.db query with preset SELECT, FROM and other common fields based on the provided model.

(m Model)

Source from the content-addressed store, hash-verified

65// ModelQuery creates a new preconfigured select data.db query with preset
66// SELECT, FROM and other common fields based on the provided model.
67func (app *BaseApp) ModelQuery(m Model) *dbx.SelectQuery {
68 return app.modelQuery(app.ConcurrentDB(), m)
69}
70
71// AuxModelQuery creates a new preconfigured select auxiliary.db query with preset
72// SELECT, FROM and other common fields based on the provided model.

Callers 2

ReloadSettingsMethod · 0.95
CollectionQueryMethod · 0.95

Calls 2

modelQueryMethod · 0.95
ConcurrentDBMethod · 0.95

Tested by

no test coverage detected