Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 59 for jinzhu (0.03 sec)

  1. tests/scanner_valuer_test.go

    		t.Errorf("insert with sql.Expr, but got %v", stmt.SQL.String())
    	}
    
    	if !reflect.DeepEqual([]interface{}{"jinzhu", "POINT(100 100)"}, stmt.Vars) {
    		t.Errorf("generated vars is not equal, got %v", stmt.Vars)
    	}
    
    	stmt = dryRunDB.Model(UserWithPoint{}).Create(map[string]interface{}{
    		"Name":  "jinzhu",
    		"Point": clause.Expr{SQL: "ST_PointFromText(?)", Vars: []interface{}{"POINT(100 100)"}},
    	}).Statement
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. go.mod

    module gorm.io/gorm
    
    go 1.18
    
    require (
    	github.com/jinzhu/inflection v1.0.0
    	github.com/jinzhu/now v1.1.5
    	golang.org/x/text v0.20.0
    )
    
    require (
    	github.com/mattn/go-sqlite3 v1.14.22 // indirect
    	gorm.io/driver/sqlite v1.6.0 // indirect
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 04:33:27 UTC 2025
    - 241 bytes
    - Viewed (0)
  3. tests/go.mod

    module gorm.io/gorm/tests
    
    go 1.24.0
    
    require (
    	github.com/google/uuid v1.6.0
    	github.com/jinzhu/now v1.1.5
    	github.com/lib/pq v1.10.9
    	github.com/stretchr/testify v1.11.1
    	gorm.io/driver/gaussdb v0.1.0
    	gorm.io/driver/mysql v1.6.0
    	gorm.io/driver/postgres v1.6.0
    	gorm.io/driver/sqlite v1.6.0
    	gorm.io/driver/sqlserver v1.6.1
    	gorm.io/gorm v1.31.0
    )
    
    require (
    	filippo.io/edwards25519 v1.1.0 // indirect
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  4. tests/postgres_test.go

    		t.Errorf("No error should happen, but got %v", err)
    	}
    
    	yasuo.Name = "jinzhu1"
    	if err := DB.Save(&yasuo).Error; err != nil {
    		t.Errorf("Failed to update date, got error %v", err)
    	}
    
    	if err := DB.First(&result, "id = ?", yasuo.ID).Error; err != nil || yasuo.Name != "jinzhu1" {
    		t.Errorf("No error should happen, but got %v", err)
    	}
    }
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sat Oct 08 09:16:32 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  5. clause/values_test.go

    			[]clause.Interface{
    				clause.Insert{},
    				clause.Values{
    					Columns: []clause.Column{{Name: "name"}, {Name: "age"}},
    					Values:  [][]interface{}{{"jinzhu", 18}, {"josh", 1}},
    				},
    			},
    			"INSERT INTO `users` (`name`,`age`) VALUES (?,?),(?,?)",
    			[]interface{}{"jinzhu", 18, "josh", 1},
    		},
    	}
    
    	for idx, result := range results {
    		t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 691 bytes
    - Viewed (0)
  6. tests/gaussdb_test.go

    		t.Errorf("No error should happen, but got %v", err)
    	}
    
    	yasuo.Name = "jinzhu1"
    	if err := DB.Save(&yasuo).Error; err != nil {
    		t.Errorf("Failed to update date, got error %v", err)
    	}
    
    	if err := DB.First(&result, "id = ?", yasuo.ID).Error; err != nil || yasuo.Name != "jinzhu1" {
    		t.Errorf("No error should happen, but got %v", err)
    	}
    }
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. tests/gorm_test.go

    		} else if results.RowsAffected != 1 {
    			t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected)
    		} else if got.ID != u1.ID {
    			t.Fatalf("select expects: %v, got %v", u1, got)
    		}
    
    		u1.Name = "jinzhu"
    		if results := DB.Save(&u1); results.Error != nil {
    			t.Fatalf("errors happened on update: %v", results.Error)
    		} else if results.RowsAffected != 1 {
    			t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jun 01 07:22:21 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. .github/workflows/labeler.yml

    jobs:
      triage:
        runs-on: ubuntu-latest
        name: Label issues and pull requests
        steps:
          - name: check out
            uses: actions/checkout@v4
    
          - name: labeler
            uses: jinzhu/super-labeler-action@develop
            with:
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Oct 10 06:50:45 UTC 2023
    - 423 bytes
    - Viewed (0)
  9. clause/benchmarks_test.go

    		clauses := []clause.Interface{clause.Select{}, clause.From{}, clause.Where{Exprs: []clause.Expression{clause.Eq{Column: clause.PrimaryColumn, Value: "1"}, clause.Gt{Column: "age", Value: 18}, clause.Or(clause.Neq{Column: "name", Value: "jinzhu"})}}}
    
    		for _, clause := range clauses {
    			stmt.AddClause(clause)
    		}
    
    		stmt.Build("SELECT", "FROM", "WHERE")
    		_ = stmt.SQL.String()
    	}
    }
    
    func BenchmarkComplexSelect(b *testing.B) {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Oct 07 12:14:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  10. LICENSE

    The MIT License (MIT)
    
    Copyright (c) 2013-present  Jinzhu <******@****.***>
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Jan 12 10:32:39 UTC 2025
    - 1.1K bytes
    - Viewed (0)
Back to top