// NamedGetContext using this DB.
// Any named placeholder parameters are replaced with fields from arg.
// An error is returned if the result set is empty.
NamedGetContext using this DB.
Any named placeholder parameters are replaced with fields from arg.
An error is returned if the result set is empty.
// NamedGetContext using this DB . // Any named placeholder parameters are replaced with fields from arg . // An error is returned if the result set is empty .
func (db *DB) NamedGetContext(ctx Ctx, dest interface{}, query string, arg interface{}) error {
	query, args, err := db.BindNamed(query, arg)
	if err == nil {
		err = db.GetContext(ctx, dest, query, args...)
	}
	return err
}
func ( db * DB ) NamedGetContext ( ctx Ctx , dest interface { } , query string , arg interface { } ) error { query , args , err := db . BindNamed ( query , arg ) if err == nil { err = db . GetContext ( ctx , dest , query , args ... ) } return err }
NamedGetContext using this DB.
NamedGetContext using this DB .