- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for db_state (0.16 sec)
-
docs_src/sql_databases_peewee/sql_app/database.py
db_state_default = {"closed": None, "conn": None, "ctx": None, "transactions": None} db_state = ContextVar("db_state", default=db_state_default.copy()) class PeeweeConnectionState(peewee._ConnectionState): def __init__(self, **kwargs): super().__setattr__("_state", db_state) super().__init__(**kwargs) def __setattr__(self, name, value): self._state.get()[name] = value def __getattr__(self, name):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 662 bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/main.py
database.db.create_tables([models.User, models.Item]) database.db.close() app = FastAPI() sleep_time = 10 async def reset_db_state(): database.db._state._state.set(db_state_default.copy()) database.db._state.reset() def get_db(db_state=Depends(reset_db_state)): try: database.db.connect() yield finally: if not database.db.is_closed(): database.db.close()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 2.2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java
private static List<String> visitAll( Collection<Vertex> children, Map<Vertex, DfsState> stateMap, List<String> list) { for (Vertex v : children) { DfsState state = stateMap.putIfAbsent(v, DfsState.VISITING); if (state == null) { visitAll(v.children, stateMap, list); stateMap.put(v, DfsState.VISITED); list.add(v.label); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.6K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java
DfsState state = stateMap.putIfAbsent(v, DfsState.VISITING); if (state == null) { cycle.addLast(v); List<String> ret = visitCycle(graph, graph.get(v), stateMap, cycle); if (ret != null) { return ret; } cycle.removeLast(); stateMap.put(v, DfsState.VISITED);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.4K bytes - Viewed (0) -
api/go1.11.txt
pkg database/sql, type DBStats struct, Idle int pkg database/sql, type DBStats struct, InUse int pkg database/sql, type DBStats struct, MaxIdleClosed int64 pkg database/sql, type DBStats struct, MaxLifetimeClosed int64 pkg database/sql, type DBStats struct, MaxOpenConnections int pkg database/sql, type DBStats struct, WaitCount int64 pkg database/sql, type DBStats struct, WaitDuration time.Duration
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 22 03:48:56 UTC 2018 - 25K bytes - Viewed (0) -
api/go1.15.txt
pkg crypto/x509, type RevocationList struct, ThisUpdate time.Time pkg database/sql, method (*DB) SetConnMaxIdleTime(time.Duration) pkg database/sql, method (*Row) Err() error pkg database/sql, type DBStats struct, MaxIdleTimeClosed int64 pkg database/sql/driver, type Validator interface { IsValid } pkg database/sql/driver, type Validator interface, IsValid() bool pkg debug/pe, const IMAGE_DLLCHARACTERISTICS_APPCONTAINER = 4096
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Jul 17 02:15:01 UTC 2020 - 7.6K bytes - Viewed (0) -
api/go1.5.txt
pkg crypto/x509/pkix, type Name struct, ExtraNames []AttributeTypeAndValue pkg database/sql, method (*DB) Stats() DBStats pkg database/sql, type DBStats struct pkg database/sql, type DBStats struct, OpenConnections int pkg debug/dwarf, const ClassAddress = 1 pkg debug/dwarf, const ClassAddress Class pkg debug/dwarf, const ClassBlock = 2 pkg debug/dwarf, const ClassBlock Class
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0) -
api/go1.1.txt
pkg syscall (linux-386), type TCPInfo struct, Advmss uint32 pkg syscall (linux-386), type TCPInfo struct, Ato uint32 pkg syscall (linux-386), type TCPInfo struct, Backoff uint8 pkg syscall (linux-386), type TCPInfo struct, Ca_state uint8 pkg syscall (linux-386), type TCPInfo struct, Fackets uint32 pkg syscall (linux-386), type TCPInfo struct, Last_ack_recv uint32 pkg syscall (linux-386), type TCPInfo struct, Last_ack_sent uint32
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 2.6M bytes - Viewed (0) -
api/go1.2.txt
pkg syscall (linux-arm-cgo), type TCPInfo struct, Ato uint32 pkg syscall (linux-arm-cgo), type TCPInfo struct, Backoff uint8 pkg syscall (linux-arm-cgo), type TCPInfo struct, Ca_state uint8 pkg syscall (linux-arm-cgo), type TCPInfo struct, Fackets uint32 pkg syscall (linux-arm-cgo), type TCPInfo struct, Last_ack_recv uint32 pkg syscall (linux-arm-cgo), type TCPInfo struct, Last_ack_sent uint32
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Oct 18 04:36:59 UTC 2013 - 1.9M bytes - Viewed (0)