func (q userAccountEthnicityQuery) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error) {
	var count int64

	queries.SetCount(q.Query)
	queries.SetLimit(q.Query, 1)

	err := q.Query.QueryRowContext(ctx, exec).Scan(&count)
	if err != nil {
		return false, errors.Wrap(err, "models: failed to check if user_account_ethnicity exists")
	}

	return count > 0, nil
}
// Exists checks if the row exists in the table.
Exists checks if the row exists in the table.
// Exists checks if the row exists in the table .
func (q userAccountEthnicityQuery) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error) {
	var count int64
	queries.SetCount(q.Query)
	queries.SetLimit(q.Query, 1)
	err := q.Query.QueryRowContext(ctx, exec).Scan(&count)
	if err != nil {
		return false, errors.Wrap(err, "models: failed to check if user_account_ethnicity exists")
	}
	return count > 0, nil
}
func ( q userAccountEthnicityQuery ) Exists ( ctx context . Context , exec boil . ContextExecutor ) ( bool , error ) { var count int64 queries . SetCount ( q . Query ) queries . SetLimit ( q . Query , 1 ) err := q . Query . QueryRowContext ( ctx , exec ) . Scan ( & count ) if err != nil { return false , errors . Wrap ( err , " " ) } return count > 0 , nil }
Exists checks if the row exists in the table.
Exists checks if the row exists in the table .