Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 299 for query (0.21 sec)

  1. callbacks/query.go

    package callbacks
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils"
    )
    
    func Query(db *gorm.DB) {
    	if db.Error == nil {
    		BuildQuerySQL(db)
    
    		if !db.DryRun && db.Error == nil {
    			rows, err := db.Statement.ConnPool.QueryContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    			if err != nil {
    				db.AddError(err)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Jan 29 03:34:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  2. tests/test_query.py

                    {
                        "loc": ["query", "query"],
                        "msg": "value is not a valid integer",
                        "type": "type_error.integer",
                    }
                ]
            }
        )
    
    
    def test_query_frozenset_query_1_query_1_query_2():
        response = client.get("/query/frozenset/?query=1&query=1&query=2")
        assert response.status_code == 200
        assert response.json() == "1,2"
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/query-params-str-validations.md

    Like in:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    But `item-query` is not a valid Python variable name.
    
    The closest would be `item_query`.
    
    But you still need it to be exactly `item-query`...
    
    Then you can declare an `alias`, and that alias is what will be used to find the parameter value:
    
    === "Python 3.10+"
    
        ```Python hl_lines="9"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  4. docs/fr/docs/tutorial/query-params-str-validations.md

    ## Importer `Query`
    
    Pour cela, importez d'abord `Query` depuis `fastapi` :
    
    ```Python hl_lines="3"
    {!../../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    ## Utiliser `Query` comme valeur par défaut
    
    Construisez ensuite la valeur par défaut de votre paramètre avec `Query`, en choisissant 50 comme `max_length` :
    
    ```Python hl_lines="9"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/query-params-str-validations.md

        ```Python hl_lines="11"
        {!> ../../../docs_src/query_params_str_validations/tutorial008_py310.py!}
        ```
    
    ## 📛 🔢
    
    🌈 👈 👆 💚 🔢 `item-query`.
    
    💖:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    ✋️ `item-query` 🚫 ☑ 🐍 🔢 📛.
    
    🔐 🔜 `item_query`.
    
    ✋️ 👆 💪 ⚫️ ⚫️❔ `item-query`...
    
    ⤴️ 👆 💪 📣 `alias`, & 👈 📛 ⚫️❔ 🔜 ⚙️ 🔎 🔢 💲:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/query-params-str-validations.md

    ### `Query`のインポート
    
    そのために、まずは`fastapi`から`Query`をインポートします:
    
    ```Python hl_lines="3"
    {!../../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    ## デフォルト値として`Query`を使用
    
    パラメータのデフォルト値として使用し、パラメータ`max_length`を50に設定します:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 10.5K bytes
    - Viewed (1)
  7. docs/ru/docs/tutorial/query-params-str-validations.md

    q: Union[str, None] = None
    ```
    
    Но у нас query-параметр определён как `Query`. Например:
    
    === "Annotated"
    
        ```Python
        q: Annotated[Union[str, None], Query(min_length=3)] = None
        ```
    
    === "без Annotated"
    
        ```Python
        q: Union[str, None] = Query(default=None, min_length=3)
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 38K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/query-params-str-validations.md

    Wie in:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    Aber `item-query` ist kein gültiger Name für eine Variable in Python.
    
    Am ähnlichsten wäre `item_query`.
    
    Aber Sie möchten dennoch exakt `item-query` verwenden.
    
    Dann können Sie einen `alias` deklarieren, und dieser Alias wird verwendet, um den Parameter-Wert zu finden:
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                    Set.of("QUERY1", "QUERY2"), //
                    buildQuery("QUERY1 AND QUERY2"));
    
            assertQuery(
                    functionScoreQuery(
                            orQuery(simpleQuery("QUERY1", titleBoost, contentBoost), simpleQuery("QUERY2", titleBoost, contentBoost))),
                    Map.of("_default", List.of("QUERY1", "QUERY2")), //
                    Set.of("QUERY1", "QUERY2"), //
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  10. tests/test_openapi_examples.py

    ):
        return item_id
    
    
    @app.get("/query_examples/")
    def query_examples(
        data: Union[str, None] = Query(
            default=None,
            examples=[
                "json_schema_query1",
                "json_schema_query2",
            ],
            openapi_examples={
                "Query One": {
                    "summary": "Query One Summary",
                    "description": "Query One Description",
                    "value": "query1",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 17K bytes
    - Viewed (0)
Back to top