MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / status

Method status

test/engine/test_pool.py:1039–1045  ·  view source on GitHub ↗
(pool)

Source from the content-addressed store, hash-verified

1037 p = self._queuepool_fixture(pool_size=3, max_overflow=-1)
1038
1039 def status(pool):
1040 return (
1041 pool.size(),
1042 pool.checkedin(),
1043 pool.overflow(),
1044 pool.checkedout(),
1045 )
1046
1047 c1 = p.connect()
1048 self.assert_(status(p) == (3, 0, -2, 1))

Callers 2

regularFunction · 0.45
mainFunction · 0.45

Calls 4

sizeMethod · 0.80
checkedinMethod · 0.80
overflowMethod · 0.80
checkedoutMethod · 0.80

Tested by

no test coverage detected