func FindPosition(ctx context.Context, exec boil.ContextExecutor, positionID int64, selectCols ...string) (*Position, error) {
	positionObj := &Position{}

	sel := "*"
	if len(selectCols) > 0 {
		sel = strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, selectCols), ",")
	}
	query := fmt.Sprintf(
		"select %s from \"positions\" where \"position_id\"=$1", sel,
	)

	q := queries.Raw(query, positionID)

	err := q.Bind(ctx, exec, positionObj)
	if err != nil {
		if errors.Cause(err) == sql.ErrNoRows {
			return nil, sql.ErrNoRows
		}
		return nil, errors.Wrap(err, "models: unable to select from positions")
	}

	return positionObj, nil
}
// FindPosition retrieves a single record by ID with an executor.
// If selectCols is empty Find will return all columns.
FindPosition retrieves a single record by ID with an executor.
If selectCols is empty Find will return all columns.
// FindPosition retrieves a single record by ID with an executor . // If selectCols is empty Find will return all columns .
func FindPosition(ctx context.Context, exec boil.ContextExecutor, positionID int64, selectCols ...string) (*Position, error) {
	positionObj := &Position{}
	sel := "*"
	if len(selectCols) > 0 {
		sel = strings.Join(strmangle.IdentQuoteSlice(dialect.LQ, dialect.RQ, selectCols), ",")
	}
	query := fmt.Sprintf(
		"select %s from \"positions\" where \"position_id\"=$1", sel,
	)
	q := queries.Raw(query, positionID)
	err := q.Bind(ctx, exec, positionObj)
	if err != nil {
		if errors.Cause(err) == sql.ErrNoRows {
			return nil, sql.ErrNoRows
		}
		return nil, errors.Wrap(err, "models: unable to select from positions")
	}
	return positionObj, nil
}
func FindPosition ( ctx context . Context , exec boil . ContextExecutor , positionID int64 , selectCols ... string ) ( * Position , error ) { positionObj := & Position { } sel := " " if len ( selectCols ) > 0 { sel = strings . Join ( strmangle . IdentQuoteSlice ( dialect . LQ , dialect . RQ , selectCols ) , " " ) } query := fmt . Sprintf ( " \" \" \" \" " , sel , ) q := queries . Raw ( query , positionID ) err := q . Bind ( ctx , exec , positionObj ) if err != nil { if errors . Cause ( err ) == sql . ErrNoRows { return nil , sql . ErrNoRows } return nil , errors . Wrap ( err , " " ) } return positionObj , nil }
FindPosition retrieves a single record by ID with an executor.
FindPosition retrieves a single record by ID with an executor .