Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for Ressin (0.21 sec)

  1. gorm.go

    }
    
    // DB GORM DB definition
    type DB struct {
    	*Config
    	Error        error
    	RowsAffected int64
    	Statement    *Statement
    	clone        int
    }
    
    // Session session config when create session with Session() method
    type Session struct {
    	DryRun                   bool
    	PrepareStmt              bool
    	NewDB                    bool
    	Initialized              bool
    	SkipHooks                bool
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sun Aug 20 11:46:56 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  2. tests/update_has_many_test.go

    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user3 User
    	DB.Preload("Pets").Find(&user3, "id = ?", user.ID)
    	CheckUser(t, user2, user3)
    
    	if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user4 User
    	DB.Preload("Pets").Find(&user4, "id = ?", user.ID)
    	CheckUser(t, user4, user)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2K bytes
    - Viewed (0)
  3. tests/query_test.go

    	result := DB.Session(&gorm.Session{DryRun: true}).Model(&User{}).Find(&simpleUsers, user.ID)
    
    	if !regexp.MustCompile("SELECT .*id.*name.*updated_at.*created_at.* FROM .*users").MatchString(result.Statement.SQL.String()) {
    		t.Fatalf("SQL should include selected names, but got %v", result.Statement.SQL.String())
    	}
    
    	result = DB.Session(&gorm.Session{DryRun: true}).Model(&User{}).Find(&User{}, user.ID)
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  4. association.go

    		}
    	}
    
    	associationDB := association.DB.Session(&Session{}).Model(nil)
    	if !association.DB.FullSaveAssociations {
    		associationDB.Select(selectedSaveColumns)
    	}
    	if len(omitColumns) > 0 {
    		associationDB.Omit(omitColumns...)
    	}
    	associationDB = associationDB.Session(&Session{})
    
    	switch reflectValue.Kind() {
    	case reflect.Slice, reflect.Array:
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  5. tests/associations_test.go

    	coupon := &Coupon{
    		AppliesToProduct: []*CouponProduct{
    			{ProductId: "full-save-association-product1"},
    		},
    		AmountOff:  10,
    		PercentOff: 0.0,
    	}
    
    	err := DB.
    		Session(&gorm.Session{FullSaveAssociations: true}).
    		Create(coupon).Error
    	if err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    
    	if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. tests/sql_builder_test.go

    	DB.Raw("select * from users WHERE id = ?", users[1].ID).First(&user)
    	CheckUser(t, user, *users[1])
    }
    
    func TestDryRun(t *testing.T) {
    	user := *GetUser("dry-run", Config{})
    
    	dryRunDB := DB.Session(&gorm.Session{DryRun: true})
    
    	stmt := dryRunDB.Create(&user).Statement
    	if stmt.SQL.String() == "" || len(stmt.Vars) != 9 {
    		t.Errorf("Failed to generate sql, got %v", stmt.SQL.String())
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  7. cmd/sts-handlers.go

    	// https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html
    	// The plain text that you use for both inline and managed session
    	// policies shouldn't exceed 2048 characters.
    	if len(sessionPolicyStr) > 2048 {
    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Session policy should not exceed 2048 characters"))
    		return
    	}
    
    	if len(sessionPolicyStr) > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  8. tests/associations_many2many_test.go

    		{Code: "TestDuplicateMany2ManyAssociation-language-1"},
    		{Code: "TestDuplicateMany2ManyAssociation-language-3"},
    	}}
    	users := []*User{&user1, &user2}
    	var err error
    	err = DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(users).Error
    	AssertEqual(t, nil, err)
    
    	var findUser1 User
    	err = DB.Preload("Languages").Where("id = ?", user1.ID).First(&findUser1).Error
    	AssertEqual(t, nil, err)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 13.2K bytes
    - Viewed (0)
  9. internal/config/identity/openid/provider/provider.go

    	AuthEndpoint                     string   `json:"authorization_endpoint,omitempty"`
    	TokenEndpoint                    string   `json:"token_endpoint,omitempty"`
    	EndSessionEndpoint               string   `json:"end_session_endpoint,omitempty"`
    	UserInfoEndpoint                 string   `json:"userinfo_endpoint,omitempty"`
    	RevocationEndpoint               string   `json:"revocation_endpoint,omitempty"`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  10. cmd/admin-handlers-users_test.go

    	c.Assert(infoResp.ImpliedPolicy, true)
    }
    
    // This test assumes that the policy for `accessKey` allows listing on the given
    // bucket. It creates a session policy that restricts listing on the bucket and
    // then enables it again in a session policy update call.
    func (c *check) assertSvcAccSessionPolicyUpdate(ctx context.Context, s *TestSuiteIAM, madmClient *madmin.AdminClient, accessKey, bucket string) {
    	c.Helper()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
Back to top