- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 879 for friends (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/update_many2many_test.go
DB.Create(&lang) } user.Friends = []*User{{Name: "friend-1"}, {Name: "friend-2"}} if err := DB.Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user2 User DB.Preload("Languages").Preload("Friends").Find(&user2, "id = ?", user.ID) CheckUser(t, user2, user) for idx := range user.Friends { user.Friends[idx].Name += "new" }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 1.3K bytes - Click Count (0) -
tests/create_test.go
*GetUser("bulk_5", Config{Account: false, Pets: 0, Toys: 3, Company: true, Manager: false, Team: 1, Languages: 3, Friends: 1}), *GetUser("bulk_6", Config{Account: true, Pets: 4, Toys: 3, Company: false, Manager: true, Team: 1, Languages: 3, Friends: 0}), *GetUser("bulk_7", Config{Account: true, Pets: 1, Toys: 3, Company: true, Manager: true, Team: 4, Languages: 3, Friends: 1}),Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 09:55:20 GMT 2025 - 26.8K bytes - Click Count (0) -
docs_src/python_types/tutorial011_py310.py
id: int name: str = "John Doe" signup_ts: datetime | None = None friends: list[int] = [] external_data = { "id": "123", "signup_ts": "2017-06-01 12:22", "friends": [1, "2", b"3"], } user = User(**external_data) print(user) # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3] print(user.id)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Sep 02 15:56:35 GMT 2023 - 461 bytes - Click Count (0) -
utils/tests/models.go
// He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table) // He speaks many languages (many to many) and has many friends (many to many - single-table) // His pet also has one Toy (has one - polymorphic) // NamedPet is a reference to a named `Pet` (has one) type User struct { gorm.Model Name string Age uint
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Dec 15 08:36:08 GMT 2023 - 2.1K bytes - Click Count (0) -
tests/helper_test.go
} }) t.Run("Friends", func(t *testing.T) { if len(user.Friends) != len(expect.Friends) { t.Fatalf("Friends should equal, expect: %v, got %v", len(expect.Friends), len(user.Friends)) } sort.Slice(user.Friends, func(i, j int) bool { return user.Friends[i].ID > user.Friends[j].ID }) sort.Slice(expect.Friends, func(i, j int) bool {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:27:38 GMT 2026 - 8.6K bytes - Click Count (0) -
tests/preload_test.go
} AssertEqual(t, find2, value2) var finds []Value err = DB.Joins("Nested.Join").Joins("Nested").Preload("Nested.Preloads").Find(&finds).Error if err != nil { t.Errorf("failed to find value, got err: %v", err) } AssertEqual(t, len(finds), 2) AssertEqual(t, finds[0], value1) AssertEqual(t, finds[1], value2) } func TestMergeNestedPreloadWithNestedJoin(t *testing.T) {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed Jun 12 10:00:47 GMT 2024 - 15.9K bytes - Click Count (0) -
docs/en/docs/deployment/cloud.md
It brings the same **developer experience** of building apps with FastAPI to **deploying** them to the cloud. π FastAPI Cloud is the primary sponsor and funding provider for the *FastAPI and friends* open source projects. β¨ ## Cloud Providers - Sponsors { #cloud-providers-sponsors } Some other cloud providers β¨ [**sponsor FastAPI**](../help-fastapi.md#sponsor-the-author) β¨ too. πCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 1.2K bytes - Click Count (0) -
docs_src/extra_models/tutorial003_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 612 bytes - Click Count (0) -
tests/generics_test.go
ctx := context.Background() db := gorm.G[User](DB) u := *GetUser("GenericsPreloads_1", Config{Company: true, Pets: 3, Friends: 7}) u2 := *GetUser("GenericsPreloads_2", Config{Company: true, Pets: 5, Friends: 5}) u3 := *GetUser("GenericsPreloads_3", Config{Company: true, Pets: 7, Friends: 3}) names := []string{u.Name, u2.Name, u3.Name} db.CreateInBatches(ctx, &[]User{u3, u, u2}, 10)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Dec 30 08:11:14 GMT 2025 - 34.9K bytes - Click Count (0) -
docs/ko/docs/deployment/cloud.md
**[FastAPI Cloud](https://fastapicloud.com)**λ **FastAPI**λ₯Ό λ§λ λμΌν μμ±μμ νμ΄ κ΅¬μΆνμ΅λλ€. μ΅μνμ λ Έλ ₯μΌλ‘ APIλ₯Ό **ꡬμΆ**, **λ°°ν¬**, **μ κ·Ό**νλ κ³Όμ μ κ°μνν©λλ€. FastAPIλ‘ μ±μ λΉλν λμ λμΌν **κ°λ°μ κ²½ν**μ ν΄λΌμ°λμ **λ°°ν¬**νλ λ°μλ μ 곡ν©λλ€. π FastAPI Cloudλ *FastAPI and friends* μ€ν μμ€ νλ‘μ νΈμ μ£Όμ νμμμ΄μ μκΈ μ 곡μμ λλ€. β¨ ## ν΄λΌμ°λ μ 곡μ 체 - νμμλ€ { #cloud-providers-sponsors } λ€λ₯Έ λͺλͺ ν΄λΌμ°λ μ 곡μ 체λ€λ β¨ [**FastAPIλ₯Ό νμν©λλ€**](../help-fastapi.md#sponsor-the-author) β¨. π κ°μ΄λλ₯Ό λ°λΌ νκ³ μλΉμ€λ₯Ό μ¬μ©ν΄λ³΄κΈ° μν΄ μ΄λ€λ κ³ λ €ν΄λ³Ό μ μμ΅λλ€:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 1.4K bytes - Click Count (0)