Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 161 for upsert (0.17 sec)

  1. .editorconfig

    root = true
    
    [*]
    indent_size = 2
    ij_continuation_indent_size = 2
    charset = utf-8
    trim_trailing_whitespace = true
    insert_final_newline = true
    
    [*.{kt, kts}]
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 185 bytes
    - Viewed (0)
  2. mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt

     */
    package mockwebserver3.junit4
    
    import assertk.assertThat
    import assertk.assertions.isTrue
    import java.net.ConnectException
    import java.util.concurrent.atomic.AtomicBoolean
    import org.junit.Assert.fail
    import org.junit.Test
    import org.junit.runner.Description
    import org.junit.runners.model.Statement
    
    class MockWebServerRuleTest {
      @Test fun statementStartsAndStops() {
        val rule = MockWebServerRule()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (1)
  3. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

    import org.apache.hc.client5.http.impl.async.HttpAsyncClients
    import org.apache.hc.core5.concurrent.FutureCallback
    import org.apache.hc.core5.http.ProtocolVersion
    import org.junit.Assert
    import org.junit.Test
    
    /**
     * Simplified from
     * https://hc.apache.org/httpcomponents-client-5.0.x/httpclient5/examples/AsyncClientTlsAlpn.java
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

         * [addSubjectAlternativeName]. If unset a random string will be used.
         *
         * [rfc_2818]: https://tools.ietf.org/html/rfc2818
         */
        fun commonName(cn: String) =
          apply {
            this.commonName = cn
          }
    
        /** Sets the certificate's organizational unit (OU). If unset this field will be omitted. */
        fun organizationalUnit(ou: String) =
          apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  5. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt

    import org.apache.hc.client5.http.classic.methods.HttpGet
    import org.apache.hc.client5.http.impl.classic.HttpClients
    import org.apache.hc.core5.http.HttpVersion
    import org.junit.After
    import org.junit.Assert.assertEquals
    import org.junit.Test
    import org.junit.runner.RunWith
    
    /**
     * Apache HttpClient 5.x.
     *
     * https://hc.apache.org/httpcomponents-client-5.0.x/index.html
     */
    @RunWith(AndroidJUnit4::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/body-updates.md

        But this guide shows you, more or less, how they are intended to be used.
    
    ### Using Pydantic's `exclude_unset` parameter
    
    If you want to receive partial updates, it's very useful to use the parameter `exclude_unset` in Pydantic's model's `.model_dump()`.
    
    Like `item.model_dump(exclude_unset=True)`.
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/body-updates.md

         & ๐Ÿ“š ๐Ÿ‰ โš™๏ธ ๐Ÿ•ด `PUT`, ๐Ÿ• โ„น.
    
        ๐Ÿ‘† **๐Ÿ†“** โš™๏ธ ๐Ÿ‘ซ ๐Ÿ‘ ๐Ÿ‘† ๐Ÿ’š, **FastAPI** ๐Ÿšซ ๐Ÿšซ ๐Ÿ™† ๐Ÿšซ.
    
        โœ‹๏ธ ๐Ÿ‘‰ ๐Ÿฆฎ ๐ŸŽฆ ๐Ÿ‘†, ๐ŸŒ– โš–๏ธ ๐ŸŒ˜, โ” ๐Ÿ‘ซ ๐ŸŽฏ โš™๏ธ.
    
    ### โš™๏ธ Pydantic `exclude_unset` ๐Ÿ”ข
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’š ๐Ÿ“จ ๐Ÿ• โ„น, โšซ๏ธ ๐Ÿ“ถ โš  โš™๏ธ ๐Ÿ”ข `exclude_unset` Pydantic ๐Ÿท `.dict()`.
    
    ๐Ÿ’– `item.dict(exclude_unset=True)`.
    
    ๐Ÿ‘ˆ ๐Ÿ”œ ๐Ÿ— `dict` โฎ๏ธ ๐Ÿ•ด ๐Ÿ’ฝ ๐Ÿ‘ˆ โš’ ๐Ÿ•โ” ๐Ÿ— `item` ๐Ÿท, ๐Ÿšซ ๐Ÿ”ข ๐Ÿ’ฒ.
    
    โคด๏ธ ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐Ÿ‘‰ ๐Ÿ— `dict` โฎ๏ธ ๐Ÿ•ด ๐Ÿ’ฝ ๐Ÿ‘ˆ โš’ (๐Ÿ“จ ๐Ÿ“จ), ๐Ÿšซ ๐Ÿ”ข ๐Ÿ’ฒ:
    
    === "๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/body-updates.md

        **FastAPI** ใฏใฉใ‚“ใชๅˆถ้™ใ‚‚่ชฒใ‘ใฆใ„ใชใ„ใฎใงใ€ใใ‚Œใ‚‰ใ‚’ไฝฟใ†ใฎใฏ **่‡ช็”ฑ** ใงใ™ใ€‚
    
        ใ—ใ‹ใ—ใ€ใ“ใฎใ‚ฌใ‚คใƒ‰ใงใฏใ€ใใ‚Œใ‚‰ใŒใฉใฎใ‚ˆใ†ใซไฝฟ็”จใ•ใ‚Œใ‚‹ใ“ใจใ‚’ๆ„ๅ›ณใ—ใฆใ„ใ‚‹ใ‹ใ‚’ๅคšใ‹ใ‚Œๅฐ‘ใชใ‹ใ‚Œใ€็คบใ—ใฆใ„ใพใ™ใ€‚
    
    ### Pydanticใฎ`exclude_unset`ใƒ‘ใƒฉใƒกใƒผใ‚ฟใฎไฝฟ็”จ
    
    ้ƒจๅˆ†็š„ใชๆ›ดๆ–ฐใ‚’ๅ—ใ‘ๅ–ใ‚ŠใŸใ„ๅ ดๅˆใฏใ€Pydanticใƒขใƒ‡ใƒซใฎ`.dict()`ใฎ`exclude_unset`ใƒ‘ใƒฉใƒกใƒผใ‚ฟใ‚’ไฝฟ็”จใ™ใ‚‹ใจ้žๅธธใซไพฟๅˆฉใงใ™ใ€‚
    
    `item.dict(exclude_unset=True)`ใฎใ‚ˆใ†ใซใ€‚
    
    ใ“ใ‚Œใซใ‚ˆใ‚Šใ€`item`ใƒขใƒ‡ใƒซใฎไฝœๆˆๆ™‚ใซ่จญๅฎšใ•ใ‚ŒใŸใƒ‡ใƒผใ‚ฟใฎใฟใ‚’ๆŒใค`dict`ใŒ็”Ÿๆˆใ•ใ‚Œใ€ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆๅ€คใฏ้™คๅค–ใ•ใ‚Œใพใ™ใ€‚
    
    ใ“ใ‚Œใ‚’ไฝฟใ†ใ“ใจใงใ€ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆๅ€คใ‚’็œ็•ฅใ—ใฆใ€่จญๅฎšใ•ใ‚ŒใŸ๏ผˆใƒชใ‚ฏใ‚จใ‚นใƒˆใง้€ใ‚‰ใ‚ŒใŸ๏ผ‰ใƒ‡ใƒผใ‚ฟใฎใฟใ‚’ๅซใ‚€`dict`ใ‚’็”Ÿๆˆใ™ใ‚‹ใ“ใจใŒใงใใพใ™:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/Locks.kt

        return lock.withLock(action)
      }
    
      inline fun <T> Http2Writer.withLock(action: () -> T): T {
        contract { callsInPlace(action, InvocationKind.EXACTLY_ONCE) }
    
        // TODO can we assert we don't have the connection lock?
    
        return lock.withLock(action)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/response-model.md

    ๊ทธ๋Ÿฌ๋‚˜ ์‹ค์ œ๋กœ ์ €์žฅ๋˜์ง€ ์•Š์•˜์„ ๊ฒฝ์šฐ ๊ฒฐ๊ณผ์—์„œ ๊ฐ’์„ ์ƒ๋žตํ•˜๊ณ  ์‹ถ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    ์˜ˆ๋ฅผ ๋“ค์–ด, NoSQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ๋งŽ์€ ์„ ํƒ์  ์†์„ฑ์ด ์žˆ๋Š” ๋ชจ๋ธ์ด ์žˆ์ง€๋งŒ, ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ๊ฐ€๋“ ์ฐฌ ๋งค์šฐ ๊ธด JSON ์‘๋‹ต์„ ๋ณด๋‚ด๊ณ  ์‹ถ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
    
    ### `response_model_exclude_unset` ๋งค๊ฐœ๋ณ€์ˆ˜ ์‚ฌ์šฉ
    
    *๊ฒฝ๋กœ ์ž‘๋™ ๋ฐ์ฝ”๋ ˆ์ดํ„ฐ* ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ `response_model_exclude_unset=True`๋กœ ์„ค์ • ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
    
    ```Python hl_lines="24"
    {!../../../docs_src/response_model/tutorial004.py!}
    ```
    
    ์ด๋Ÿฌํ•œ ๊ธฐ๋ณธ๊ฐ’์€ ์‘๋‹ต์— ํฌํ•จ๋˜์ง€ ์•Š๊ณ  ์‹ค์ œ๋กœ ์„ค์ •๋œ ๊ฐ’๋งŒ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.2K bytes
    - Viewed (0)
Back to top