- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 8,155 for Clauss (0.21 sec)
-
src/main/java/org/codelibs/fess/query/BooleanQueryCommand.java
final BoolQueryBuilder boolQuery = QueryBuilders.boolQuery(); for (final BooleanClause clause : booleanQuery.clauses()) { final QueryBuilder queryBuilder = getQueryProcessor().execute(context, clause.getQuery(), boost); if (queryBuilder != null) { switch (clause.getOccur()) { case MUST: boolQuery.must(queryBuilder); break;
Java - Registered: Mon Mar 25 08:04:08 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 2.9K bytes - Viewed (0) -
callbacks/delete.go
for _, cond := range queryConds { if c, ok := cond.(clause.IN); ok && len(c.Values) == 0 { withoutConditions = true break } } if !withoutConditions && db.AddError(tx.Clauses(clause.Where{Exprs: queryConds}).Delete(modelValue).Error) != nil { return } case schema.Many2Many: var ( queryConds = make([]clause.Expression, 0, len(rel.References))
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Fri Feb 25 02:48:23 GMT 2022 - 5.6K bytes - Viewed (0) -
clause/benchmarks_test.go
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Fri Oct 07 12:14:14 GMT 2022 - 1.9K bytes - Viewed (0) -
clause/group_by_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestGroupBy(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}, clause.GroupBy{ Columns: []clause.Column{{Name: "role"}}, Having: []clause.Expression{clause.Eq{"role", "admin"}}, }},
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 1.1K bytes - Viewed (0) -
clause/from_test.go
Joins: []clause.Join{ { Type: clause.RightJoin, Table: clause.Table{Name: "profiles"}, ON: clause.Where{ []clause.Expression{clause.Eq{clause.Column{Table: "profiles", Name: "email"}, clause.Column{Table: clause.CurrentTable, Name: "email"}}}, }, }, }, }, clause.From{ Joins: []clause.Join{ { Type: clause.InnerJoin,
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Wed Jul 15 02:25:10 GMT 2020 - 1.9K bytes - Viewed (0) -
callbacks/create.go
if _, ok := db.Statement.Clauses["RETURNING"]; !ok { fromColumns := make([]clause.Column, 0, len(db.Statement.Schema.FieldsWithDefaultDBValue)) for _, field := range db.Statement.Schema.FieldsWithDefaultDBValue { fromColumns = append(fromColumns, clause.Column{Name: field.DBName}) } db.Statement.AddClause(clause.Returning{Columns: fromColumns}) } } }
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Tue Mar 19 03:50:28 GMT 2024 - 12.5K bytes - Viewed (0) -
soft_delete.go
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Wed Feb 01 06:40:55 GMT 2023 - 4.5K bytes - Viewed (0) -
chainable_api.go
tx = db.getInstance() tx.Statement.Model = value return } // Clauses Add clauses // // This supports both standard clauses (clause.OrderBy, clause.Limit, clause.Where) and more // advanced techniques like specifying lock strength and optimizer hints. See the // [docs] for more depth. // // // add a simple limit clause // db.Clauses(clause.Limit{Limit: 1}).Find(&User{}) // // tell the optimizer to use the `idx_user_name` index
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Fri Jan 12 08:42:21 GMT 2024 - 13.9K bytes - Viewed (1) -
clause/joins_test.go
}, }, sql: "LEFT JOIN `user` ON `user_info`.`user_id` = `users`.`id`", }, { name: "RIGHT JOIN", join: clause.Join{ Type: clause.RightJoin, Table: clause.Table{Name: "user"}, ON: clause.Where{ Exprs: []clause.Expression{clause.Eq{clause.Column{Table: "user_info", Name: "user_id"}, clause.PrimaryColumn}}, }, },
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Thu Nov 03 13:03:13 GMT 2022 - 2.6K bytes - Viewed (0) -
clause/set_test.go
package clause_test import ( "fmt" "sort" "strings" "testing" "gorm.io/gorm/clause" ) func TestSet(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{ clause.Update{}, clause.Set([]clause.Assignment{{clause.PrimaryColumn, 1}}), }, "UPDATE `users` SET `users`.`id`=?", []interface{}{1}, },
Go - Registered: Sun Mar 24 09:35:10 GMT 2024 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 1.4K bytes - Viewed (0)