func SelectReferences(db *sqlx.DB, b squirrel.SelectBuilder) ([]Reference, error) {
	refs := []Reference{}
	query, _, err := b.ToSql()
	if err != nil {
		return refs, err
	}
	err = db.Select(&refs, query)
	return refs, err
}
// SelectReferences selects the reference sequences from db using
// squirrel.SelectBuilder. It will return an error if it encounters one.
//
// e.g.
// refs, err := SelectReferences(db, ReferenceBuilder)
SelectReferences selects the reference sequences from db using
squirrel.SelectBuilder. It will return an error if it encounters one.

e.g.
refs, err := SelectReferences(db, ReferenceBuilder)
// SelectReferences selects the reference sequences from db using // squirrel . SelectBuilder . It will return an error if it encounters one . // // e . g . // refs err : = SelectReferences ( db ReferenceBuilder )
func SelectReferences(db *sqlx.DB, b squirrel.SelectBuilder) ([]Reference, error) {
	refs := []Reference{}
	query, _, err := b.ToSql()
	if err != nil {
		return refs, err
	}
	err = db.Select(&refs, query)
	return refs, err
}
func SelectReferences ( db * sqlx . DB , b squirrel . SelectBuilder ) ( [ ] Reference , error ) { refs := [ ] Reference { } query , _ , err := b . ToSql ( ) if err != nil { return refs , err } err = db . Select ( & refs , query ) return refs , err }
SelectReferences selects the reference sequences from db using
squirrel.SelectBuilder.
SelectReferences selects the reference sequences from db using squirrel . SelectBuilder .