Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,595 for uker (0.02 sec)

  1. docs_src/body_multiple_params/tutorial003_an_py310.py

        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: int, item: Item, user: User, importance: Annotated[int, Body()]
    ):
        results = {"item_id": item_id, "item": item, "user": user, "importance": importance}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 550 bytes
    - Viewed (0)
  2. tests/associations_belongs_to_test.go

    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestBelongsToAssociation(t *testing.T) {
    	user := *GetUser("belongs-to", Config{Company: true, Manager: true})
    
    	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)
    	pointerOfUser := &user2
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  3. docs_src/body_multiple_params/tutorial004_py310.py

        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item,
        user: User,
        importance: int = Body(gt=0),
        q: str | None = None,
    ):
        results = {"item_id": item_id, "item": item, "user": user, "importance": importance}
        if q:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Mar 10 18:49:18 UTC 2023
    - 603 bytes
    - Viewed (0)
  4. clause/clause_test.go

    	var (
    		buildNames    []string
    		buildNamesMap = map[string]bool{}
    		user, _       = schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy)
    		stmt          = gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
    	)
    
    	for _, c := range clauses {
    		if _, ok := buildNamesMap[c.Name()]; !ok {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Jun 02 02:50:38 UTC 2020
    - 1012 bytes
    - Viewed (0)
  5. schema/model_test.go

    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/utils/tests"
    )
    
    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"`
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/user/bsentity/dbmeta/UserDbm.java

            setupEpg(_epgMap, et -> ((User) et).getState(), (et, vl) -> ((User) et).setState(DfTypeUtil.toString(vl)), "state");
            setupEpg(_epgMap, et -> ((User) et).getStreet(), (et, vl) -> ((User) et).setStreet(DfTypeUtil.toString(vl)), "street");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 27K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/user/bsbhv/BsUserBhv.java

     */
    package org.codelibs.fess.es.user.bsbhv;
    
    import java.util.List;
    import java.util.Map;
    
    import org.codelibs.fess.es.user.allcommon.EsAbstractBehavior;
    import org.codelibs.fess.es.user.allcommon.EsAbstractEntity.RequestOptionCall;
    import org.codelibs.fess.es.user.bsentity.dbmeta.UserDbm;
    import org.codelibs.fess.es.user.cbean.UserCB;
    import org.codelibs.fess.es.user.exentity.User;
    import org.dbflute.Entity;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. docs_src/security/tutorial002_an_py39.py

        user = fake_decode_token(token)
        return user
    
    
    @app.get("/users/me")
    async def read_users_me(current_user: Annotated[User, Depends(get_current_user)]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 786 bytes
    - Viewed (0)
  9. docs/multi-user/admin/README.md

    ```
    
    Create a new admin user `admin1` on MinIO use `mc admin user`.
    
    ```
    mc admin user add myminio admin1 admin123
    ```
    
    Once the user is successfully created you can now apply the `userManage` policy for this user.
    
    ```
    mc admin policy attach myminio userManager --user=admin1
    ```
    
    This admin user will then be allowed to perform create/delete user operations via `mc admin user`
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 21 06:38:06 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. tests/associations_has_many_test.go

    )
    
    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)
    	CheckUser(t, user2, user)
    
    	var pets []Pet
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top