Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 44 of 44 for Gwener (0.14 sec)

  1. tests/named_polymorphic_test.go

    package tests_test
    
    import (
    	"testing"
    
    	. "gorm.io/gorm/utils/tests"
    )
    
    type Hamster struct {
    	Id           int
    	Name         string
    	PreferredToy Toy `gorm:"polymorphic:Owner;polymorphicValue:hamster_preferred"`
    	OtherToy     Toy `gorm:"polymorphic:Owner;polymorphicValue:hamster_other"`
    }
    
    func TestNamedPolymorphic(t *testing.T) {
    	DB.Migrator().DropTable(&Hamster{})
    	DB.AutoMigrate(&Hamster{})
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jul 08 09:59:40 GMT 2020
    - 4.2K bytes
    - Viewed (0)
  2. schema/schema_test.go

    		{Name: "OwnerID", DBName: "company_owner_id", BindNames: []string{"Base", "OwnerID"}, DataType: schema.Int, Size: 64, TagSettings: map[string]string{"EMBEDDED": "EMBEDDED", "EMBEDDEDPREFIX": "company_"}},
    		{Name: "OwnerID", DBName: "owner_id", BindNames: []string{"CorpBase", "OwnerID"}, DataType: schema.String},
    	}
    
    	for _, f := range fields {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  3. schema/model_test.go

    )
    
    type User struct {
    	*gorm.Model
    	Name      *string
    	Age       *uint
    	Birthday  *time.Time
    	Account   *tests.Account
    	Pets      []*tests.Pet
    	Toys      []*tests.Toy `gorm:"polymorphic:Owner"`
    	CompanyID *int
    	Company   *tests.Company
    	ManagerID *uint
    	Manager   *User
    	Team      []*User           `gorm:"foreignkey:ManagerID"`
    	Languages []*tests.Language `gorm:"many2many:UserSpeak"`
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  4. cmd/bucket-handlers.go

    		return
    	}
    
    	// Check if anonymous (non-owner) has access to list objects.
    	readable := globalPolicySys.IsAllowed(policy.BucketPolicyArgs{
    		Action:          policy.ListBucketAction,
    		BucketName:      bucket,
    		ConditionValues: getConditionValues(r, "", auth.AnonymousCredentials),
    		IsOwner:         false,
    	})
    
    	// Check if anonymous (non-owner) has access to upload objects.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
Back to top