MCPcopy
hub / github.com/jmoiron/sqlx / Get

Method Get

sqlx.go:326–328  ·  sqlx.go::DB.Get

Get using this DB. Any placeholder parameters are replaced with supplied args. An error is returned if the result set is empty.

(dest interface{}, query string, args ...interface{})

Source from the content-addressed store, hash-verified

324// Any placeholder parameters are replaced with supplied args.
325// An error is returned if the result set is empty.
326func (db *DB) Get(dest interface{}, query string, args ...interface{}) error {
327 return Get(db, dest, query, args...)
328}
329
330// MustBegin starts a transaction, and panics on error. Returns an *sqlx.Tx instead
331// of an *sql.Tx.

Callers 9

TestNamedQueriesFunction · 0.45
TestMissingNamesFunction · 0.45
TestNilReceiverFunction · 0.45
TestNilInsertsFunction · 0.45
TestUsageFunction · 0.45
TestEmbeddedMapsFunction · 0.45
TestIssue197Function · 0.45
TestEmbeddedLiteralsFunction · 0.45
parseNameFunction · 0.45

Calls 1

GetFunction · 0.85

Tested by 8

TestNamedQueriesFunction · 0.36
TestMissingNamesFunction · 0.36
TestNilReceiverFunction · 0.36
TestNilInsertsFunction · 0.36
TestUsageFunction · 0.36
TestEmbeddedMapsFunction · 0.36
TestIssue197Function · 0.36
TestEmbeddedLiteralsFunction · 0.36