Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 860 for asStatement (0.39 sec)

  1. finisher_api.go

    					case string:
    						if field := db.Statement.Schema.LookUpField(column); field != nil {
    							db.AddError(field.Set(db.Statement.Context, db.Statement.ReflectValue, eq.Value))
    						}
    					case clause.Column:
    						if field := db.Statement.Schema.LookUpField(column.Name); field != nil {
    							db.AddError(field.Set(db.Statement.Context, db.Statement.ReflectValue, eq.Value))
    						}
    					}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/RestrictiveCodeVisitor.java

            restrict(statement);
        }
    
        @Override
        public void visitThrowStatement(ThrowStatement statement) {
            restrict(statement);
        }
    
        @Override
        public void visitSynchronizedStatement(SynchronizedStatement statement) {
            restrict(statement);
        }
    
        @Override
        public void visitCatchStatement(CatchStatement statement) {
            restrict(statement);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. helm/minio/templates/_helper_policy.tpl

    {
      "Version": "2012-10-17",
      "Statement": [
    {{- range $i, $statement := .statements }}
        {
          "Effect": "{{ $statement.effect | default "Allow" }}",
          "Action": [
    "{{ $statement.actions | join "\",\n\"" }}"
          ]{{ if $statement.resources }},
          "Resource": [
    "{{ $statement.resources | join "\",\n\"" }}"
          ]{{ end }}
    {{- if $statement.conditions }}
    {{- $condition_len := len $statement.conditions }}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Aug 19 14:39:11 UTC 2023
    - 872 bytes
    - Viewed (0)
  4. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/AstUtils.java

                }
            }
    
            return null;
        }
    
        public static Iterable<? extends Statement> unpack(Statement statement) {
            if (statement instanceof BlockStatement) {
                return ((BlockStatement) statement).getStatements();
            } else {
                return Collections.singleton(statement);
            }
        }
    
        public static MethodNode getGeneratedClosureImplMethod(ClassNode classNode) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  5. callbacks/preload.go

    					}
    				default:
    					return gorm.ErrInvalidData
    				}
    			} else {
    				tx := db.Table("").Session(&gorm.Session{Context: db.Statement.Context, SkipHooks: db.Statement.SkipHooks})
    				tx.Statement.ReflectValue = db.Statement.ReflectValue
    				tx.Statement.Unscoped = db.Statement.Unscoped
    				if err := preload(tx, rel, append(preloads[name], associationsConds...), preloadMap[name]); err != nil {
    					return err
    				}
    			}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. callbacks/callmethod.go

    	tx := db.Session(&gorm.Session{NewDB: true})
    	if called := fc(db.Statement.ReflectValue.Interface(), tx); !called {
    		switch db.Statement.ReflectValue.Kind() {
    		case reflect.Slice, reflect.Array:
    			db.Statement.CurDestIndex = 0
    			for i := 0; i < db.Statement.ReflectValue.Len(); i++ {
    				if value := reflect.Indirect(db.Statement.ReflectValue.Index(i)); value.CanAddr() {
    					fc(value.Addr().Interface(), tx)
    				} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 846 bytes
    - Viewed (0)
  7. association.go

    	association := &Association{DB: db}
    	table := db.Statement.Table
    
    	if err := db.Statement.Parse(db.Statement.Model); err == nil {
    		db.Statement.Table = table
    		association.Relationship = db.Statement.Schema.Relationships.Relations[column]
    
    		if association.Relationship == nil {
    			association.Error = fmt.Errorf("%w: %s", ErrUnsupportedRelation, column)
    		}
    
    		db.Statement.ReflectValue = reflect.ValueOf(db.Statement.Model)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. tests/table_test.go

    	r := dryDB.Table("`user`").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT \\* FROM `user`").MatchString(r.Statement.SQL.String()) {
    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    	r = dryDB.Table("user as u").Select("name").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT .name. FROM user as u WHERE .u.\\..deleted_at. IS NULL").MatchString(r.Statement.SQL.String()) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Mar 09 09:31:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. callbacks/create.go

    		if db.Statement.Schema != nil {
    			if !db.Statement.Unscoped {
    				for _, c := range db.Statement.Schema.CreateClauses {
    					db.Statement.AddClause(c)
    				}
    			}
    
    			if supportReturning && len(db.Statement.Schema.FieldsWithDefaultDBValue) > 0 {
    				if _, ok := db.Statement.Clauses["RETURNING"]; !ok {
    					fromColumns := make([]clause.Column, 0, len(db.Statement.Schema.FieldsWithDefaultDBValue))
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/ops/gen/cpp/renderers/op_implementation_renderer.cc

      ArgView output_arg = op_.OnlyOutput();
      Statement("int num_retvals = $0.size()", output_arg.VariableName());
      Statement("return " + Call(op_.VariableName(), "Execute",
                                 {output_arg.VariableName(), "&num_retvals"}));
    }
    
    void OpImplementationRenderer::RenderExecutionSingleOutput() {
      ArgView output_arg = op_.OnlyOutput();
      Statement("int num_retvals = 1");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top