Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for Heroes (0.04 sec)

  1. tests/test_tutorial/test_sql_databases/test_tutorial001.py

            response = client.get(f"/heroes/{hero_id}")
            assert response.status_code == 200, response.text
            assert response.json() == snapshot(
                {"name": "Dead Pond", "age": 30, "id": 999, "secret_name": "Dive Wilson"}
            )
    
            # Read all heroes
            # Create more heroes first
            response = client.post(
                "/heroes/",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_sql_databases/test_tutorial002.py

            hero_id = response.json()["id"]
            response = client.get(f"/heroes/{hero_id}")
            assert response.status_code == 200, response.text
            assert response.json() == snapshot(
                {"name": "Dead Pond", "age": 30, "id": IsInt()}
            )
    
            # Read all heroes
            # Create more heroes first
            response = client.post(
                "/heroes/",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/sql-databases.md

    </details>
    
    Aqui, usamos a dependência `SessionDep` (uma `Session`) para adicionar o novo `Hero` à instância `Session`, fazer commit das alterações no banco de dados, atualizar os dados no `hero` e então retorná-lo.
    
    ### Ler Heroes
    
    Podemos **ler** `Hero`s do banco de dados usando um `select()`. Podemos incluir um `limit` e `offset` para paginar os resultados.
    
    {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[48:55] hl[51:52,54] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/sql-databases.md

    </details>
    
    Here we use the `SessionDep` dependency (a `Session`) to add the new `Hero` to the `Session` instance, commit the changes to the database, refresh the data in the `hero`, and then return it.
    
    ### Read Heroes
    
    We can **read** `Hero`s from the database using a `select()`. We can include a `limit` and `offset` to paginate the results.
    
    {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[48:55] hl[51:52,54] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  5. docs/fr/docs/features.md

    * Validation pour des types plus exotiques, tel que:
        * URL.
        * Email.
        * UUID.
        * ...et autres.
    
    Toutes les validations sont gérées par le bien établi et robuste **Pydantic**.
    
    ### Sécurité et authentification
    
    La sécurité et l'authentification sont intégrées. Sans aucun compromis avec les bases de données ou les modèles de données.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

            checkVersionsOrder(c, d);
            checkVersionsOrder(b, d);
            checkVersionsOrder(a, d);
        }
    
        /**
         * Test all versions are equal when starting with many leading zeroes regardless of string length
         * (related to MNG-6572 optimization)
         */
        @Test
        void testVersionEqualWithLeadingZeroes() {
            // versions with string lengths from 1 to 19
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. guava/src/com/google/common/math/Stats.java

       *
       * @param values a series of values
       */
      public static Stats of(double... values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator.snapshot();
      }
    
      /**
       * Returns statistics over a dataset containing the given values.
       *
       * @param values a series of values
       */
      public static Stats of(int... values) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/net/InetAddresses.java

            int end = ipString.indexOf(IPV6_DELIMITER, start);
            if (end == -1) {
              end = ipString.length();
            }
            if (ipString.charAt(start) == IPV6_DELIMITER) {
              // expand zeroes
              for (int i = 0; i < partsSkipped; i++) {
                rawBytes.putShort((short) 0);
              }
    
            } else {
              rawBytes.putShort(parseHextet(ipString, start, end));
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/StatsAccumulator.java

       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision)
       */
      public void addAll(Iterable<? extends Number> values) {
        for (Number value : values) {
          add(value.doubleValue());
        }
      }
    
      /**
       * Adds the given values to the dataset.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. internal/grid/manager.go

    // If the host does not exist nil will be returned.
    func (m *Manager) Connection(host string) *Connection {
    	return m.targets[host]
    }
    
    // RegisterSingleHandler will register a stateless handler that serves
    // []byte -> ([]byte, error) requests.
    // subroutes are joined with "/" to a single subroute.
    func (m *Manager) RegisterSingleHandler(id HandlerID, h SingleHandlerFn, subroute ...string) error {
    	if !id.valid() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top