Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Staples (0.21 sec)

  1. fastapi/encoders.py

    }
    
    
    def generate_encoders_by_class_tuples(
        type_encoder_map: Dict[Any, Callable[[Any], Any]],
    ) -> Dict[Callable[[Any], Any], Tuple[Any, ...]]:
        encoders_by_class_tuples: Dict[Callable[[Any], Any], Tuple[Any, ...]] = defaultdict(
            tuple
        )
        for type_, encoder in type_encoder_map.items():
            encoders_by_class_tuples[encoder] += (type_,)
        return encoders_by_class_tuples
    
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/async-sql-encode-databases.md

    ## Create the tables
    
    In this case, we are creating the tables in the same Python file, but in production, you would probably want to create them with Alembic, integrated with migrations, etc.
    
    Here, this section would run directly, right before starting your **FastAPI** application.
    
    * Create an `engine`.
    * Create all the tables from the `metadata` object.
    
    ```Python hl_lines="25-28"
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/sql-databases.md

    ## Main **FastAPI** app
    
    And now in the file `sql_app/main.py` let's integrate and use all the other parts we created before.
    
    ### Create the database tables
    
    In a very simplistic way create the database tables:
    
    === "Python 3.9+"
    
        ```Python hl_lines="7"
        {!> ../../../docs_src/sql_databases/sql_app_py39/main.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  4. chainable_api.go

    			if results[1] != "" {
    				tx.Statement.Table = results[1]
    			} else {
    				tx.Statement.Table = results[2]
    			}
    		}
    	} else if tables := strings.Split(name, "."); len(tables) == 2 {
    		tx.Statement.TableExpr = &clause.Expr{SQL: tx.Statement.Quote(name)}
    		tx.Statement.Table = tables[1]
    	} else if name != "" {
    		tx.Statement.TableExpr = &clause.Expr{SQL: tx.Statement.Quote(name)}
    		tx.Statement.Table = name
    	} else {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  5. cni/pkg/nodeagent/net.go

    	if err != nil {
    		log.Warnf("unable to list IPSet: %v", err)
    		return err
    	}
    	actual := sets.New[netip.Addr](actualIPSetContents...)
    	stales := actual.DifferenceInPlace(expected)
    
    	for staleIP := range stales {
    		if err := hostsideProbeSet.ClearEntriesWithIP(staleIP); err != nil {
    			return err
    		}
    		log.Debugf("removed stale ip %s from host ipset %s", staleIP, hostsideProbeSet.Name)
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.1K bytes
    - Viewed (1)
  6. cni/pkg/iptables/iptables.go

    	//
    	// Extreme corner case:
    	// If for some reason your host had both binaries, and you were injecting out-of-band
    	// iptables rules within a pod context into `legacy` tables, but your host context preferred
    	// `nft`, we would still inject our rules in-pod into nft tables, which is a bit wonky.
    	//
    	// But that's stunningly unlikely (and would still work either way)
    	iptVer, err := ext.DetectIptablesVersion(false)
    	if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 01:42:30 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.SortedMapDifference;
    import com.google.common.collect.SortedMultiset;
    import com.google.common.collect.SortedSetMultimap;
    import com.google.common.collect.Table;
    import com.google.common.collect.Tables;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultimap;
    import com.google.common.io.ByteSink;
    import com.google.common.io.ByteSource;
    import com.google.common.io.ByteStreams;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  8. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.SortedMapDifference;
    import com.google.common.collect.SortedMultiset;
    import com.google.common.collect.SortedSetMultimap;
    import com.google.common.collect.Table;
    import com.google.common.collect.Tables;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultimap;
    import com.google.common.io.ByteSink;
    import com.google.common.io.ByteSource;
    import com.google.common.io.ByteStreams;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      }
    
      /**
       * Applies a supplemental hash function to a given hash code, which defends against poor quality
       * hash functions. This is critical when the concurrent hash map uses power-of-two length hash
       * tables, that otherwise encounter collisions for hash codes that do not differ in lower or upper
       * bits.
       *
       * @param h hash code
       */
      static int rehash(int h) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  10. fastapi/openapi/models.py

        dependentSchemas: Optional[Dict[str, "SchemaOrBool"]] = None
        prefixItems: Optional[List["SchemaOrBool"]] = None
        # TODO: uncomment and remove below when deprecating Pydantic v1
        # It generales a list of schemas for tuples, before prefixItems was available
        # items: Optional["SchemaOrBool"] = None
        items: Optional[Union["SchemaOrBool", List["SchemaOrBool"]]] = None
        contains: Optional["SchemaOrBool"] = None
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top