Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for _id (0.13 sec)

  1. chainable_api.go

    	}
    	return
    }
    
    // Joins specify Joins conditions
    //
    //	db.Joins("Account").Find(&user)
    //	db.Joins("JOIN emails ON emails.user_id = users.id AND emails.email = ?", "******@****.***").Find(&user)
    //	db.Joins("Account", DB.Select("id").Where("user_id = users.id AND name = ?", "someName").Model(&Account{}))
    func (db *DB) Joins(query string, args ...interface{}) (tx *DB) {
    	return joins(db, clause.LeftJoin, query, args...)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  2. schema/relationship_test.go

    	})
    }
    
    func TestHasOneOverrideReferences2(t *testing.T) {
    	type Profile struct {
    		gorm.Model
    		Name string
    	}
    
    	type User struct {
    		gorm.Model
    		ProfileID uint     `gorm:"column:profile_id"`
    		Profile   *Profile `gorm:"foreignKey:ID;references:ProfileID"`
    	}
    
    	checkStructRelation(t, &User{}, Relation{
    		Name: "Profile", Type: schema.HasOne, Schema: "User", FieldSchema: "Profile",
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  3. tests/table_test.go

    	dryDB := DB.Session(&gorm.Session{DryRun: true, QueryFields: true})
    	userQuery := "SELECT .*user.*id.*user.*created_at.*user.*updated_at.*user.*deleted_at.*user.*name.*user.*age" +
    		".*user.*birthday.*user.*company_id.*user.*manager_id.*user.*active.* "
    
    	r := dryDB.Table("`user`").Find(&User{}).Statement
    	if !regexp.MustCompile(userQuery + "FROM `user`").MatchString(r.Statement.SQL.String()) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Mar 09 09:31:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. internal/event/target/nats.go

    	NATSClientCert    = "client_cert"
    	NATSClientKey     = "client_key"
    
    	// Streaming constants - deprecated
    	NATSStreaming                   = "streaming"
    	NATSStreamingClusterID          = "streaming_cluster_id"
    	NATSStreamingAsync              = "streaming_async"
    	NATSStreamingMaxPubAcksInFlight = "streaming_max_pub_acks_in_flight"
    
    	// JetStream constants
    	NATSJetStream = "jetstream"
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 18:11:55 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  5. cmd/metrics-v2.go

    						Name:      "target_total_events",
    						Help:      "Total number of events sent (or) queued to the target",
    						Type:      counterMetric,
    					},
    					VariableLabels: map[string]string{"target_id": id.ID, "target_name": id.Name},
    					Value:          float64(st.TotalEvents),
    				})
    				metrics = append(metrics, MetricV2{
    					Description: MetricDescription{
    						Namespace: minioNamespace,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  6. tests/create_test.go

    		{
    			"name":    "cat",
    			"user_id": gorm.Expr("(?)", DB.Table("(?) as tmp", subQuery).Select("@uid:=id")),
    		},
    		{
    			"name":    "dog",
    			"user_id": gorm.Expr("@uid"),
    		},
    	})
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    		{testBuckets[4], "file1/receipt.json", "content", nil},
    		{testBuckets[4], "file1/guidSplunk-aaaa/file", "content", nil},
    		{testBuckets[5], "dir/day_id=2017-10-10/issue", "content", nil},
    		{testBuckets[5], "dir/day_id=2017-10-11/issue", "content", nil},
    		{testBuckets[5], "foo/201910/1122", "content", nil},
    		{testBuckets[5], "foo/201910/1112", "content", nil},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  8. istioctl/pkg/workload/workload.go

    	md["POD_NAMESPACE"] = wg.Namespace
    	md["SERVICE_ACCOUNT"] = we.ServiceAccount
    	md["TRUST_DOMAIN"] = meshConfig.TrustDomain
    
    	md["ISTIO_META_CLUSTER_ID"] = clusterID
    	md["ISTIO_META_MESH_ID"] = meshConfig.DefaultConfig.MeshId
    	md["ISTIO_META_NETWORK"] = we.Network
    	if portsStr := marshalWorkloadEntryPodPorts(we.Ports); portsStr != "" {
    		md["ISTIO_META_POD_PORTS"] = portsStr
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  9. tests/migrate_test.go

    		t.Fatalf("no view should be created, got %v", err)
    	}
    
    	query := DB.Model(&User{}).
    		Select("users.id as users_id, users.name as users_name, pets.id as pets_id, pets.name as pets_name").
    		Joins("inner join pets on pets.user_id = users.id")
    
    	if err := DB.Migrator().CreateView("users_pets", gorm.ViewOption{Query: query}); err != nil {
    		t.Fatalf("Failed to crate view, got %v", err)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. cmd/common-main.go

    	if value := env.Get(config.EnvMinIOPrometheusURL, ""); value != "" {
    		os.Setenv("CONSOLE_PROMETHEUS_URL", value)
    		if value := env.Get(config.EnvMinIOPrometheusJobID, "minio-job"); value != "" {
    			os.Setenv("CONSOLE_PROMETHEUS_JOB_ID", value)
    			// Support additional labels for more granular filtering.
    			if value := env.Get(config.EnvMinIOPrometheusExtraLabels, ""); value != "" {
    				os.Setenv("CONSOLE_PROMETHEUS_EXTRA_LABELS", value)
    			}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
Back to top