MCPcopy Create free account
hub / github.com/go-pg/pg / QueryOne

Method QueryOne

pg.go:112–112  ·  view source on GitHub ↗
(model, query interface{}, params ...interface{})

Source from the content-addressed store, hash-verified

110 Query(model, query interface{}, params ...interface{}) (Result, error)
111 QueryContext(c context.Context, model, query interface{}, params ...interface{}) (Result, error)
112 QueryOne(model, query interface{}, params ...interface{}) (Result, error)
113 QueryOneContext(c context.Context, model, query interface{}, params ...interface{}) (Result, error)
114
115 Begin() (*Tx, error)

Callers 15

ExampleHstoreFunction · 0.65
TestLoaderErrorMethod · 0.65
TestConversionFunction · 0.65
BenchmarkQueryRowFunction · 0.65
BenchmarkQueryRowStmtFunction · 0.65
BenchmarkQueryRowScanFunction · 0.65
TestOnConnectFunction · 0.65

Implementers 2

baseDBbase.go
Txtx.go

Calls

no outgoing calls

Tested by 15

ExampleHstoreFunction · 0.52
TestLoaderErrorMethod · 0.52
TestConversionFunction · 0.52
BenchmarkQueryRowFunction · 0.52
BenchmarkQueryRowStmtFunction · 0.52
BenchmarkQueryRowScanFunction · 0.52
TestOnConnectFunction · 0.52