Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for AddClause (0.07 sec)

  1. statement.go

    					}
    					writer.WriteByte(')')
    				}
    			default:
    				stmt.Vars = append(stmt.Vars, v)
    				stmt.DB.Dialector.BindVarTo(writer, stmt, v)
    			}
    		}
    	}
    }
    
    // AddClause add clause
    func (stmt *Statement) AddClause(v clause.Interface) {
    	if optimizer, ok := v.(StatementModifier); ok {
    		optimizer.ModifyStatement(stmt)
    	} else {
    		name := v.Name()
    		c := stmt.Clauses[name]
    		c.Name = name
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. association.go

    			for _, queryClause := range association.Relationship.JoinTable.QueryClauses {
    				joinStmt.AddClause(queryClause)
    			}
    			joinStmt.Build("WHERE")
    			if len(joinStmt.SQL.String()) > 0 {
    				tx.Clauses(clause.Expr{SQL: strings.Replace(joinStmt.SQL.String(), "WHERE ", "", 1), Vars: joinStmt.Vars})
    			}
    		}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top