Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 358 for created (0.21 sec)

  1. tests/upsert_test.go

    		t.Errorf("user should be created with search value")
    	}
    
    	DB.FirstOrCreate(&user3, map[string]interface{}{"name": "find or create 2"})
    	if user3.Name != "find or create 2" || user3.ID == 0 {
    		t.Errorf("user should be created with inline search value")
    	}
    
    	DB.Where(&User{Name: "find or create 3"}).Attrs("age", 44).FirstOrCreate(&user4)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Sep 05 07:39:19 GMT 2022
    - 11.4K bytes
    - Viewed (0)
  2. tests/associations_has_many_test.go

    import (
    	"testing"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestHasManyAssociation(t *testing.T) {
    	user := *GetUser("hasmany", Config{Pets: 2})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	CheckUser(t, user, user)
    
    	// Find
    	var user2 User
    	DB.Find(&user2, "id = ?", user.ID)
    	DB.Model(&user2).Association("Pets").Find(&user2.Pets)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 15.6K bytes
    - Viewed (0)
  3. cmd/benchmark-utils_test.go

    	}
    	// cleaning up the backend by removing all the directories and files created on function return.
    	defer removeRoots(disks)
    
    	// uses *testing.B and the object Layer to run the benchmark.
    	runPutObjectPartBenchmark(b, objLayer, objSize)
    }
    
    // creates Erasure/FS backend setup, obtains the object layer and calls the runPutObjectBenchmark function.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/net.go

    	// this can happen if the pod was dynamically added to the mesh after it was created.
    	// in that case, try finding the netns using procfs.
    	if err := s.rescanPod(pod); err != nil {
    		log.Errorf("error scanning proc: error was %s", err)
    		return nil, err
    	}
    	// try again. we can still get here if the pod is in the process of being created.
    	// in this case the CNI will be invoked soon and provide us with the netns.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  5. cni/pkg/install/cniconfig_test.go

    			specifiedConfName: "bridge.conf",
    			delayedConfName:   "bridge.conf",
    			expectedConfName:  "bridge.conf",
    		},
    		{
    			name:              "specified CNI config file never created",
    			chainedCNIPlugin:  true,
    			specifiedConfName: "never-created.conf",
    			existingConfFiles: []string{"bridge.conf", "list.conflist"},
    		},
    		{
    			name:             "standalone CNI plugin unspecified CNI config file",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  6. cmd/batch-rotate.go

    //     newerThan: "7d" # match objects newer than this value (e.g. 7d10h31s)
    //     olderThan: "7d" # match objects older than this value (e.g. 7d10h31s)
    //     createdAfter: "date" # match objects created after "date"
    //     createdBefore: "date" # match objects created before "date"
    //     tags:
    //       - key: "name"
    //         value: "pick*" # match objects with tag 'name', with all values starting with 'pick'
    //     metadata:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  7. cmd/site-replication.go

    				return nil
    			}
    		}
    		opts := newServiceAccountOpts{
    			accessKey:     change.Create.AccessKey,
    			secretKey:     change.Create.SecretKey,
    			sessionPolicy: sp,
    			claims:        change.Create.Claims,
    			name:          change.Create.Name,
    			description:   change.Create.Description,
    			expiration:    change.Create.Expiration,
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  8. internal/logger/logrotate.go

    		return fmt.Errorf("unable to create new file at %v: %w", path, err)
    	}
    
    	w.f = f
    
    	return nil
    }
    
    // NewDir creates a new concurrency safe Writer which performs log rotation.
    func NewDir(opts Options) (io.WriteCloser, error) {
    	if err := os.MkdirAll(opts.Directory, os.ModePerm); err != nil {
    		return nil, fmt.Errorf("directory %v does not exist and could not be created: %w", opts.Directory, err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 11:38:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. tests/connpool_test.go

    		db: nativeDB,
    		expect: []string{
    			"SELECT VERSION()",
    			"INSERT INTO `users` (`created_at`,`updated_at`,`deleted_at`,`name`,`age`,`birthday`,`company_id`,`manager_id`,`active`) VALUES (?,?,?,?,?,?,?,?,?)",
    			"SELECT * FROM `users` WHERE name = ? AND `users`.`deleted_at` IS NULL ORDER BY `users`.`id` LIMIT ?",
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. operator/cmd/mesh/manifest_shared_test.go

    		// TestMode is required to not wait in the go client for resources that will never be created in the test server.
    		helmreconciler.TestMode = true
    		// Add install and controller to the list of commands to run tests against.
    		testedManifestCmds = append(testedManifestCmds, cmdApply, cmdController)
    	}
    }
    
    // recreateTestEnv (re)creates a kubebuilder fake API server environment. This is required for testing of the
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
Back to top