func FindUserPersonalInfo(ctx context.Context, exec boil.ContextExecutor, userPersonalInfoID int64, selectCols ...string) (*UserPersonalInfo, error) {
	userPersonalInfoObj := &UserPersonalInfo{}

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

	q := queries.Raw(query, userPersonalInfoID)

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

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