- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for MergeClause (0.14 sec)
-
clause/group_by.go
} builder.WriteQuoted(column) } if len(groupBy.Having) > 0 { builder.WriteString(" HAVING ") Where{Exprs: groupBy.Having}.Build(builder) } } // MergeClause merge group by clause func (groupBy GroupBy) MergeClause(clause *Clause) { if v, ok := clause.Expression.(GroupBy); ok { copiedColumns := make([]Column, len(v.Columns)) copy(copiedColumns, v.Columns)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 30 10:28:09 UTC 2021 - 1K bytes - Viewed (0) -
clause/returning.go
if idx > 0 { builder.WriteByte(',') } builder.WriteQuoted(column) } } else { builder.WriteByte('*') } } // 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/limit.go
if limit.Limit != nil && *limit.Limit >= 0 { 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 }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Feb 06 02:54:40 UTC 2024 - 942 bytes - Viewed (0) -
clause/locking.go
builder.WriteString(" OF ") 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/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) -
clause/insert.go
} builder.WriteString("INTO ") if insert.Table.Name == "" { builder.WriteQuoted(currentTable) } else { builder.WriteQuoted(insert.Table) } } // MergeClause merge insert clause func (insert Insert) MergeClause(clause *Clause) { if v, ok := clause.Expression.(Insert); ok { if insert.Modifier == "" { insert.Modifier = v.Modifier } if insert.Table.Name == "" { insert.Table = v.Table
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 09 09:07:00 UTC 2020 - 767 bytes - Viewed (0) -
clause/from.go
} } else { builder.WriteQuoted(currentTable) } for _, join := range from.Joins { builder.WriteByte(' ') join.Build(builder) } } // MergeClause merge from clause func (from From) MergeClause(clause *Clause) { clause.Expression = from
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jul 15 02:25:10 UTC 2020 - 630 bytes - Viewed (0) -
clause/order_by.go
if idx > 0 { builder.WriteByte(',') } builder.WriteQuoted(column.Column) if column.Desc { 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:]
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Nov 03 02:30:05 UTC 2020 - 1.1K bytes - Viewed (0) -
clause/update.go
builder.WriteByte(' ') } if update.Table.Name == "" { builder.WriteQuoted(currentTable) } else { builder.WriteQuoted(update.Table) } } // MergeClause merge update clause func (update Update) MergeClause(clause *Clause) { if v, ok := clause.Expression.(Update); ok { if update.Modifier == "" { update.Modifier = v.Modifier } if update.Table.Name == "" { update.Table = v.Table
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 09 09:07:00 UTC 2020 - 737 bytes - Viewed (0) -
clause/values.go
} builder.WriteByte('(') builder.AddVar(builder, value...) builder.WriteByte(')') } } else { builder.WriteString("DEFAULT VALUES") } } // MergeClause merge values clauses func (values Values) MergeClause(clause *Clause) { clause.Name = "" clause.Expression = values
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sun May 24 03:35:19 UTC 2020 - 849 bytes - Viewed (0)