Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Shing (0.16 sec)

  1. schema/relationship_test.go

    	)
    }
    
    func TestMultipleMany2Many(t *testing.T) {
    	type Thing struct {
    		ID int
    	}
    
    	type Person struct {
    		ID       int
    		Likes    []Thing `gorm:"many2many:likes"`
    		Dislikes []Thing `gorm:"many2many:dislikes"`
    	}
    
    	checkStructRelation(t, &Person{},
    		Relation{
    			Name: "Likes", Type: schema.Many2Many, Schema: "Person", FieldSchema: "Thing",
    			JoinTable: JoinTable{Name: "likes", Table: "likes"},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  2. docs/en/docs/deployment/concepts.md

    ### What is a Process
    
    The word **process** is normally used in a more specific way, only referring to the thing that is running in the operating system (like in the last point above):
    
    * A particular program while it is **running** on the operating system.
        * This doesn't refer to the file, nor to the code, it refers **specifically** to the thing that is being **executed** and managed by the operating system.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 18K bytes
    - Viewed (0)
  3. docs/en/docs/async.md

    If you just don't know, use normal `def`.
    
    ---
    
    **Note**: You can mix `def` and `async def` in your *path operation functions* as much as you need and define each one using the best option for you. FastAPI will do the right thing with them.
    
    Anyway, in any of the cases above, FastAPI will still work asynchronously and be extremely fast.
    
    But by following the steps above, it will be able to do some performance optimizations.
    
    ## Technical Details
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/custom-response.md

    2. By using a `with` block, we make sure that the file-like object is closed after the generator function is done. So, after it finishes sending the response.
    3. This `yield from` tells the function to iterate over that thing named `file_like`. And then, for each part iterated, yield that part as coming from this generator function.
    
        So, it is a generator function that transfers the "generating" work to something else internally.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  5. docs/en/docs/python-types.md

    {!../../../docs_src/python_types/tutorial002.py!}
    ```
    
    That is not the same as declaring default values like would be with:
    
    ```Python
        first_name="john", last_name="doe"
    ```
    
    It's a different thing.
    
    We are using colons (`:`), not equals (`=`).
    
    And adding type hints normally doesn't change what happens from what would happen without them.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. cni/pkg/iptables/iptables.go

    	// (e.g. LoadBalanced Service packets, etc) that need to be authenticated/captured/proxied.
    	//
    	// We want to do the same thing in ambient but can't rely on podSpec injection. So, do effectively the same thing,
    	// but with iptables rules - use `--socket-exists` as a proxy for "is this a forwarded packet" vs "is this originating from
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/events.md

    !!! tip
        The `shutdown` would happen when you are **stopping** the application.
    
        Maybe you need to start a new version, or you just got tired of running it. 🤷
    
    ### Lifespan function
    
    The first thing to notice, is that we are defining an async function with `yield`. This is very similar to Dependencies with `yield`.
    
    ```Python hl_lines="14-19"
    {!../../../docs_src/events/tutorial003.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/openapi-callbacks.md

    ```
    
    !!! tip
        The `callback_url` query parameter uses a Pydantic <a href="https://docs.pydantic.dev/latest/concepts/types/#urls" class="external-link" target="_blank">URL</a> type.
    
    The only new thing is the `callbacks=invoices_callback_router.routes` as an argument to the *path operation decorator*. We'll see what that is next.
    
    ## Documenting the callback
    
    The actual callback code will depend heavily on your own API app.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. docs/en/docs/deployment/manually.md

    Let's go a little deeper into the details.
    
    FastAPI uses a standard for building Python web frameworks and servers called <abbr title="Asynchronous Server Gateway Interface">ASGI</abbr>. FastAPI is an ASGI web framework.
    
    The main thing you need to run a **FastAPI** application (or any other ASGI application) in a remote server machine is an ASGI server program like **Uvicorn**, this is the one that comes by default in the `fastapi` command.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  10. docs/en/docs/deployment/docker.md

    In contrast to a "**container image**" that is the stored static contents, a "**container**" normally refers to the running instance, the thing that is being **executed**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
Back to top