Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 2,258 for modkey (0.1 sec)

  1. tests/test_generate_unique_id_function.py

        router = APIRouter()
    
        @app.post("/", response_model=List[Item], responses={404: {"model": List[Message]}})
        def post_root(item1: Item, item2: Item):
            return item1, item2  # pragma: nocover
    
        @router.post(
            "/router", response_model=List[Item], responses={404: {"model": List[Message]}}
        )
        def post_router(item1: Item, item2: Item):
            return item1, item2  # pragma: nocover
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 13 15:10:26 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  2. callbacks.go

    		optimizer.ModifyStatement(stmt)
    	}
    
    	// assign model values
    	if stmt.Model == nil {
    		stmt.Model = stmt.Dest
    	} else if stmt.Dest == nil {
    		stmt.Dest = stmt.Model
    	}
    
    	// parse model values
    	if stmt.Model != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/separate-openapi-schemas.md

    Let's see how that works and how to change it if you need to do that.
    
    ## Pydantic Models for Input and Output
    
    Let's say you have a Pydantic model with default values, like this one:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### Model for Input
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 16:43:54 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. tests/group_by_test.go

    	var name string
    	var total int
    	if err := DB.Model(&User{}).Select("name, sum(age)").Where("name = ?", "groupby").Group("name").Row().Scan(&name, &total); err != nil {
    		t.Errorf("no error should happen, but got %v", err)
    	}
    
    	if name != "groupby" || total != 60 {
    		t.Errorf("name should be groupby, but got %v, total should be 60, but got %v", name, total)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  5. utils/tests/models.go

    	Active    bool
    }
    
    type Account struct {
    	gorm.Model
    	UserID sql.NullInt64
    	Number string
    }
    
    type Pet struct {
    	gorm.Model
    	UserID *uint
    	Name   string
    	Toy    Toy `gorm:"polymorphic:Owner;"`
    }
    
    type Toy struct {
    	gorm.Model
    	Name      string
    	OwnerID   string
    	OwnerType string
    }
    
    type Tools struct {
    	gorm.Model
    	Name     string
    	CustomID string
    	Type     string
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

    import org.apache.maven.api.model.Repository;
    import org.apache.maven.api.model.Resource;
    import org.apache.maven.model.Model;
    import org.apache.maven.model.building.ModelBuildingRequest;
    import org.apache.maven.model.building.ModelProblem.Severity;
    import org.apache.maven.model.building.ModelProblem.Version;
    import org.apache.maven.model.building.ModelProblemCollector;
    import org.apache.maven.model.building.ModelProblemCollectorRequest;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  7. compat/maven-toolchain-model/pom.xml

        <artifactId>maven</artifactId>
        <version>4.0.0-beta-6-SNAPSHOT</version>
    
        <relativePath>../../</relativePath>
      </parent>
    
      <artifactId>maven-toolchain-model</artifactId>
    
      <name>Maven Toolchain Model</name>
      <description>Maven Toolchain model.</description>
    
      <dependencies>
        <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-api-toolchain</artifactId>
        </dependency>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCache.java

     * under the License.
     */
    package org.apache.maven.model.building;
    
    import java.util.function.Supplier;
    
    import org.apache.maven.building.Source;
    
    /**
     * Caches auxiliary data used during model building like already processed raw/effective models. The data in the cache
     * is meant for exclusive consumption by the model builder and is opaque to the cache implementation. The cache key is
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. tests/test_filter_pydantic_sub_model/test_filter_pydantic_sub_model_pv1.py

        return client
    
    
    @needs_pydanticv1
    def test_filter_sub_model(client: TestClient):
        response = client.get("/model/modelA")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "modelA",
            "description": "model-a-desc",
            "model_b": {"username": "test-user"},
        }
    
    
    @needs_pydanticv1
    def test_validator_is_cloned(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. tests/hooks_test.go

    		t.Fatalf("Failed to query product, got error: %v", err)
    	}
    
    	DB.Model(&result3).Update("Price", 800)
    	var result4 Product2
    	DB.First(&result4, "name = ?", "Nice2")
    
    	if result4.Price != 600 {
    		t.Errorf("Admin product's price should not be changed, expects: %v, got %v", 600, result4.Price)
    	}
    }
    
    type Product3 struct {
    	gorm.Model
    	Name  string
    	Code  string
    	Price int64
    	Owner string
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top