- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 13 for company_ (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/update_test.go
if result.Name != "new company name" { t.Errorf("name should be %v, but got %v", user.Company.Name, result.Name) } } func TestIdempotentSave(t *testing.T) { create := Company{ Name: "company_idempotent", } DB.Create(&create) var company Company if err := DB.Find(&company, "id = ?", create.ID).Error; err != nil { t.Fatalf("failed to find created company, got err: %v", err) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 30.4K bytes - Click Count (0) -
tests/association_generics_test.go
t.Fatalf("failed to find created user: %v", err) } if newUser.Company.ID != company.ID { t.Errorf("expected company ID %d, got %d", company.ID, newUser.Company.ID) } if newUser.Company.Name != company.Name { t.Errorf("expected company name %s, got %s", company.Name, newUser.Company.Name) } } // BelongsTo: create and assign company via OpCreate
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 37.9K bytes - Click Count (0) -
schema/relationship_test.go
References: []Reference{ {"ID", "", "UserID", "Account", "", true}, }, }) checkStructRelation(t, &result, Relation{ Name: "Company", Type: schema.BelongsTo, Schema: "", FieldSchema: "Company", References: []Reference{ {"ID", "Company", "CompanyID", "", "", false}, }, }) } func TestSameForeignKey(t *testing.T) { type UserAux struct { gorm.Model Aux string UUID stringCreated: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Aug 18 11:44:52 GMT 2025 - 26.5K bytes - Click Count (0) -
tests/associations_many2many_test.go
{Name: "TestMany2ManyDuplicateBelongsToAssociation-friend-1", Company: Company{ ID: 1, Name: "Test-company-1", }}, }} user2 := User{Name: "TestMany2ManyDuplicateBelongsToAssociation-2", Friends: []*User{ {Name: "TestMany2ManyDuplicateBelongsToAssociation-friend-2", Company: Company{ ID: 1, Name: "Test-company-1", }}, }} users := []*User{&user1, &user2} var err errorCreated: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Jun 10 13:05:19 GMT 2023 - 13.2K bytes - Click Count (0) -
callbacks/query.go
relation, ok := db.Statement.Schema.Relationships.Relations[join.Name] if ok { isRelations = true relations = append(relations, relation) } else { // handle nested join like "Manager.Company" nestedJoinNames := strings.Split(join.Name, ".") if len(nestedJoinNames) > 1 { isNestedJoin := true guessNestedRelations := make([]*schema.Relationship, 0, len(nestedJoinNames))
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 10.4K bytes - Click Count (3) -
tests/sql_builder_test.go
if !strings.Contains(str, "rgs.id = user.id") { t.Errorf("The second join condition is over written instead of combining") } if !strings.Contains(str, "`users`.`company_id` = `companies`.`id`") && !strings.Contains(str, "\"users\".\"company_id\" = \"companies\".\"id\"") { t.Errorf("The first join condition is over written instead of combining") } } func TestToSQL(t *testing.T) {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 16.7K bytes - Click Count (0) -
docs/bucket/replication/README.md
mc replicate add myminio/srcbucket/Tax --priority 1 --remote-bucket destbucket --remote-bucket "arn:minio:replication:us-east-1:c5be6b16-769d-432a-9ef1-4567081f3566:destbucket" --tags "Year=2019&Company=AcmeCorp" --storage-class "STANDARD" --replicate "delete,delete-marker" Replication configuration applied successfully to myminio/srcbucket. ```
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 18.3K bytes - Click Count (0) -
docs/en/docs/help-fastapi.md
I love to hear about how **FastAPI** is being used, what you have liked in it, in which project/company are you using it, etc. ## Vote for FastAPI { #vote-for-fastapi } * [Vote for **FastAPI** in Slant](https://www.slant.co/options/34241/~fastapi-review).Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 12.6K bytes - Click Count (0) -
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()) {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 12.7K bytes - Click Count (0) -
docs/en/mkdocs.yml
- icon: fontawesome/brands/discord link: https://discord.gg/VQjSZaeJmf - icon: fontawesome/brands/twitter link: https://x.com/fastapi - icon: fontawesome/brands/linkedin link: https://www.linkedin.com/company/fastapi - icon: fontawesome/solid/globe link: https://tiangolo.com alternate: - link: / name: en - English - link: /de/ name: de - Deutsch - link: /es/ name: es - espaƱolCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 01 16:16:24 GMT 2026 - 9.9K bytes - Click Count (0)