Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RaiseErrorOnNotFound (0.09 sec)

  1. statement.go

    		Preloads:             map[string][]interface{}{},
    		ConnPool:             stmt.ConnPool,
    		Schema:               stmt.Schema,
    		Context:              stmt.Context,
    		RaiseErrorOnNotFound: stmt.RaiseErrorOnNotFound,
    		SkipHooks:            stmt.SkipHooks,
    	}
    
    	if stmt.SQL.Len() > 0 {
    		newStmt.SQL.WriteString(stmt.SQL.String())
    		newStmt.Vars = make([]interface{}, 0, len(stmt.Vars))
    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. scan.go

    			}
    		default:
    			db.AddError(rows.Scan(dest))
    		}
    	}
    
    	if err := rows.Err(); err != nil && err != db.Error {
    		db.AddError(err)
    	}
    
    	if db.RowsAffected == 0 && db.Statement.RaiseErrorOnNotFound && db.Error == nil {
    		db.AddError(ErrRecordNotFound)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. finisher_api.go

    	})
    	if len(conds) > 0 {
    		if exprs := tx.Statement.BuildCondition(conds[0], conds[1:]...); len(exprs) > 0 {
    			tx.Statement.AddClause(clause.Where{Exprs: exprs})
    		}
    	}
    	tx.Statement.RaiseErrorOnNotFound = true
    	tx.Statement.Dest = dest
    	return tx.callbacks.Query().Execute(tx)
    }
    
    // Take finds the first record returned by the database in no specified order, matching given conditions conds
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 22.8K bytes
    - Viewed (0)
Back to top