Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 52 of 52 for Pschera (0.14 sec)

  1. clause/expression_test.go

    	}}
    
    	for idx, result := range results {
    		t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) {
    			user, _ := schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy)
    			stmt := &gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
    			clause.Expr{SQL: result.SQL, Vars: result.Vars}.Build(stmt)
    			if stmt.SQL.String() != result.Result {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Aug 10 05:34:33 GMT 2023
    - 8.4K bytes
    - Viewed (0)
  2. tests/associations_test.go

    	AssertEqual(t, err, gorm.ErrPrimaryKeyRequired)
    }
    
    type (
    	myType           string
    	emptyQueryClause struct {
    		Field *schema.Field
    	}
    )
    
    func (myType) QueryClauses(f *schema.Field) []clause.Interface {
    	return []clause.Interface{emptyQueryClause{Field: f}}
    }
    
    func (sd emptyQueryClause) Name() string {
    	return "empty"
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top