Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 484 for Krause (0.24 sec)

  1. migrator/migrator.go

    				createTableSQL += "CONSTRAINT ? UNIQUE (?),"
    				values = append(values, clause.Column{Name: uni.Name}, clause.Expr{SQL: stmt.Quote(uni.Field.DBName)})
    			}
    
    			for _, chk := range stmt.Schema.ParseCheckConstraints() {
    				createTableSQL += "CONSTRAINT ? CHECK (?),"
    				values = append(values, clause.Column{Name: chk.Name}, clause.Expr{SQL: chk.Constraint})
    			}
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 28.5K bytes
    - Viewed (0)
  2. gorm.go

    				Context:   db.Statement.Context,
    				Clauses:   map[string]clause.Clause{},
    				Vars:      make([]interface{}, 0, 8),
    				SkipHooks: db.Statement.SkipHooks,
    			}
    		} else {
    			// with clone statement
    			tx.Statement = db.Statement.clone()
    			tx.Statement.DB = tx
    		}
    
    		return tx
    	}
    
    	return db
    }
    
    // Expr returns clause.Expr, which can be used to pass SQL expression as params
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Sun Aug 20 11:46:56 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  3. schema/relationship.go

    			} else if ref.PrimaryValue != "" {
    				conds = append(conds, clause.Eq{
    					Column: clause.Column{Table: rel.JoinTable.Table, Name: ref.ForeignKey.DBName},
    					Value:  ref.PrimaryValue,
    				})
    			} else {
    				conds = append(conds, clause.Eq{
    					Column: clause.Column{Table: rel.JoinTable.Table, Name: ref.ForeignKey.DBName},
    					Value:  clause.Column{Table: rel.FieldSchema.Table, Name: ref.PrimaryKey.DBName},
    				})
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  4. tests/upsert_test.go

    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestUpsert(t *testing.T) {
    	lang := Language{Code: "upsert", Name: "Upsert"}
    	if err := DB.Clauses(clause.OnConflict{DoNothing: true}).Create(&lang).Error; err != nil {
    		t.Fatalf("failed to upsert, got %v", err)
    	}
    
    	lang2 := Language{Code: "upsert", Name: "Upsert"}
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Sep 05 07:39:19 GMT 2022
    - 11.4K bytes
    - Viewed (0)
  5. LICENSE

    org.sonatype.aether:aether-impl
    org.sonatype.aether:aether-spi
    org.sonatype.aether:aether-util
    
    ------------------------------------------------------------------------------
    3-Clause BSD
    https://opensource.org/licenses/BSD-3-Clause
    
    com.google.code.findbugs:jsr305
    
    org.hamcrest:hamcrest-core
    BSD License
    
    Copyright (c) 2000-2015 www.hamcrest.org
    All rights reserved.
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Jan 23 11:07:23 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. statement.go

    						if len(values) > 0 {
    							conds = append(conds, clause.IN{Column: clause.PrimaryColumn, Values: values})
    							return []clause.Expression{clause.And(conds...)}
    						}
    						return nil
    					}
    				}
    
    				conds = append(conds, clause.IN{Column: clause.PrimaryColumn, Values: args})
    			}
    		}
    	}
    
    	if len(conds) > 0 {
    		return []clause.Expression{clause.And(conds...)}
    	}
    	return nil
    }
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  7. tests/sql_builder_test.go

    	newDB.Clauses(
    		clause.From{
    			Tables: []clause.Table{{Name: "users"}},
    			Joins: []clause.Join{
    				{
    					Table: clause.Table{Name: "companies", Raw: false},
    					ON: clause.Where{
    						Exprs: []clause.Expression{
    							clause.Eq{
    								Column: clause.Column{
    									Table: "users",
    									Name:  "company_id",
    								},
    								Value: clause.Column{
    									Table: "companies",
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertSame(cause, Throwables.getRootCause(exception));
      }
    
      public void testGetRootCause_Loop() {
        Exception cause = new Exception();
        Exception exception = new Exception(cause);
        cause.initCause(exception);
        try {
          Throwables.getRootCause(cause);
          fail("Should have throw IAE");
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertSame(cause, Throwables.getRootCause(exception));
      }
    
      public void testGetRootCause_Loop() {
        Exception cause = new Exception();
        Exception exception = new Exception(cause);
        cause.initCause(exception);
        try {
          Throwables.getRootCause(cause);
          fail("Should have throw IAE");
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractService.java

       */
      protected final void notifyFailed(Throwable cause) {
        checkNotNull(cause);
    
        monitor.enter();
        try {
          State previous = state();
          switch (previous) {
            case NEW:
            case TERMINATED:
              throw new IllegalStateException("Failed while in state:" + previous, cause);
            case RUNNING:
            case STARTING:
            case STOPPING:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
Back to top