Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BuildClauses (0.07 sec)

  1. callbacks/create.go

    		if db.Statement.SQL.Len() == 0 {
    			db.Statement.SQL.Grow(180)
    			db.Statement.AddClauseIfNotExists(clause.Insert{})
    			db.Statement.AddClause(ConvertToCreateValues(db.Statement))
    
    			db.Statement.Build(db.Statement.BuildClauses...)
    		}
    
    		isDryRun := !db.DryRun && db.Error == nil
    		if !isDryRun {
    			return
    		}
    
    		ok, mode := hasReturning(db, supportReturning)
    		if ok {
    			if c, ok := db.Statement.Clauses["ON CONFLICT"]; ok {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. callbacks/query.go

    			}
    
    			db.Statement.AddClause(fromClause)
    		} else {
    			db.Statement.AddClauseIfNotExists(clause.From{})
    		}
    
    		db.Statement.AddClauseIfNotExists(clauseSelect)
    
    		db.Statement.Build(db.Statement.BuildClauses...)
    	}
    }
    
    func Preload(db *gorm.DB) {
    	if db.Error == nil && len(db.Statement.Preloads) > 0 {
    		if db.Statement.Schema == nil {
    			db.AddError(fmt.Errorf("%w when using preload", gorm.ErrModelValueRequired))
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 10.1K bytes
    - Viewed (1)
  3. statement.go

    	Table                string
    	Model                interface{}
    	Unscoped             bool
    	Dest                 interface{}
    	ReflectValue         reflect.Value
    	Clauses              map[string]clause.Clause
    	BuildClauses         []string
    	Distinct             bool
    	Selects              []string          // selected columns
    	Omits                []string          // omit columns
    	ColumnMapping        map[string]string // map columns
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top