Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Value (0.18 sec)

  1. docs/em/docs/how-to/sql-databases-peewee.md

    📤 📚 👜 ✔️ 🤯.
    
    `ContextVar` ✔️ ✍ 🔝 🕹, 💖:
    
    ```Python
    some_var = ContextVar("some_var", default="default value")
    ```
    
    ⚒ 💲 ⚙️ ⏮️ "🔑" (✅ ⏮️ 📨) ⚙️:
    
    ```Python
    some_var.set("new value")
    ```
    
    🤚 💲 🙆 🔘 🔑 (✅ 🙆 🍕 🚚 ⏮️ 📨) ⚙️:
    
    ```Python
    some_var.get()
    ```
    
    ### ⚒ 🔑 🔢 `async` 🔗 `reset_db_state()`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/sql-databases-peewee.md

    The `ContextVar` has to be created at the top of the module, like:
    
    ```Python
    some_var = ContextVar("some_var", default="default value")
    ```
    
    To set a value used in the current "context" (e.g. for the current request) use:
    
    ```Python
    some_var.set("new value")
    ```
    
    To get a value anywhere inside of the context (e.g. in any part handling the current request) use:
    
    ```Python
    some_var.get()
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
Back to top