- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,078 for clause (0.08 sec)
-
soft_delete.go
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 4.5K bytes - Viewed (1) -
clause/group_by.go
package clause // GroupBy group by clause type GroupBy struct { Columns []Column Having []Expression } // Name from clause name func (groupBy GroupBy) Name() string { return "GROUP BY" } // Build build group by clause func (groupBy GroupBy) Build(builder Builder) { for idx, column := range groupBy.Columns { if idx > 0 { builder.WriteByte(',') } builder.WriteQuoted(column) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 30 10:28:09 UTC 2021 - 1K bytes - Viewed (0) -
clause/limit.go
builder.WriteByte(' ') } builder.WriteString("OFFSET ") builder.AddVar(builder, limit.Offset) } } // MergeClause merge order by clauses func (limit Limit) MergeClause(clause *Clause) { clause.Name = "" if v, ok := clause.Expression.(Limit); ok { if (limit.Limit == nil || *limit.Limit == 0) && v.Limit != nil { limit.Limit = v.Limit } if limit.Offset == 0 && v.Offset > 0 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Feb 06 02:54:40 UTC 2024 - 942 bytes - Viewed (0) -
clause/expression_test.go
}, { Expressions: []clause.Expression{ clause.Neq{Column: column, Value: nil}, clause.Neq{Column: column, Value: (*string)(nil)}, clause.Neq{Column: column, Value: (*int)(nil)}, clause.Neq{Column: column, Value: (*bool)(nil)}, clause.Neq{Column: column, Value: (interface{})(nil)}, }, Result: "`column-name` IS NOT NULL", }, { Expressions: []clause.Expression{
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 10 05:34:33 UTC 2023 - 8.4K bytes - Viewed (0) -
clause/returning.go
} } // MergeClause merge order by clauses func (returning Returning) MergeClause(clause *Clause) { if v, ok := clause.Expression.(Returning); ok { returning.Columns = append(v.Columns, returning.Columns...) } clause.Expression = returning
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Oct 27 23:56:55 UTC 2021 - 681 bytes - Viewed (0) -
clause/locking.go
builder.WriteQuoted(locking.Table) } if locking.Options != "" { builder.WriteByte(' ') builder.WriteString(locking.Options) } } // MergeClause merge order by clauses func (locking Locking) MergeClause(clause *Clause) { clause.Expression = locking
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Dec 15 08:32:56 UTC 2023 - 773 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,
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jul 15 02:25:10 UTC 2020 - 1.9K bytes - Viewed (0) -
clause/on_conflict.go
} if len(onConflict.Where.Exprs) > 0 { builder.WriteString(" WHERE ") onConflict.Where.Build(builder) builder.WriteByte(' ') } } // MergeClause merge onConflict clauses func (onConflict OnConflict) MergeClause(clause *Clause) { clause.Expression = onConflict
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Oct 07 05:46:20 UTC 2022 - 1.3K bytes - Viewed (0) -
statement_test.go
s1.AddClause(clause.Where{ Exprs: s.BuildCondition("FINAL1"), }) s2 := s.clone() s2.AddClause(clause.Where{ Exprs: s.BuildCondition("FINAL2"), }) if reflect.DeepEqual(s1.Clauses["WHERE"], s2.Clauses["WHERE"]) { t.Errorf("Where conditions should be different") } }) } } func TestNilCondition(t *testing.T) { s := new(Statement) if len(s.BuildCondition(nil)) != 0 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Dec 23 13:19:41 UTC 2023 - 1.9K bytes - Viewed (0) -
clause/order_by.go
builder.WriteString(" DESC") } } } } // MergeClause merge order by clauses func (orderBy OrderBy) MergeClause(clause *Clause) { if v, ok := clause.Expression.(OrderBy); ok { for i := len(orderBy.Columns) - 1; i >= 0; i-- { if orderBy.Columns[i].Reorder { orderBy.Columns = orderBy.Columns[i:] clause.Expression = orderBy return } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Nov 03 02:30:05 UTC 2020 - 1.1K bytes - Viewed (0)