MCPcopy
hub / github.com/pocketbase/pocketbase / AuxModelQuery

Method AuxModelQuery

core/db.go:73–75  ·  view source on GitHub ↗

AuxModelQuery creates a new preconfigured select auxiliary.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

71// AuxModelQuery creates a new preconfigured select auxiliary.db query with preset
72// SELECT, FROM and other common fields based on the provided model.
73func (app *BaseApp) AuxModelQuery(m Model) *dbx.SelectQuery {
74 return app.modelQuery(app.AuxConcurrentDB(), m)
75}
76
77func (app *BaseApp) modelQuery(db dbx.Builder, m Model) *dbx.SelectQuery {
78 tableName := m.TableName()

Callers 1

LogQueryMethod · 0.95

Calls 2

modelQueryMethod · 0.95
AuxConcurrentDBMethod · 0.95

Tested by

no test coverage detected