Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ModifyStatement (0.07 sec)

  1. soft_delete.go

    }
    
    func (sd SoftDeleteUpdateClause) MergeClause(*clause.Clause) {
    }
    
    func (sd SoftDeleteUpdateClause) ModifyStatement(stmt *Statement) {
    	if stmt.SQL.Len() == 0 && !stmt.Statement.Unscoped {
    		SoftDeleteQueryClause(sd).ModifyStatement(stmt)
    	}
    }
    
    func (DeletedAt) DeleteClauses(f *schema.Field) []clause.Interface {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 4.5K bytes
    - Viewed (1)
  2. callbacks.go

    		resetBuildClauses bool
    	)
    
    	if len(stmt.BuildClauses) == 0 {
    		stmt.BuildClauses = p.Clauses
    		resetBuildClauses = true
    	}
    
    	if optimizer, ok := db.Statement.Dest.(StatementModifier); ok {
    		optimizer.ModifyStatement(stmt)
    	}
    
    	// assign model values
    	if stmt.Model == nil {
    		stmt.Model = stmt.Dest
    	} else if stmt.Dest == nil {
    		stmt.Dest = stmt.Model
    	}
    
    	// parse model values
    	if stmt.Model != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top