MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _get_unique_id

Method _get_unique_id

asyncpg/connection.py:1607–1610  ·  view source on GitHub ↗
(self, prefix)

Source from the content-addressed store, hash-verified

1605 raise exceptions.InterfaceError('connection is closed')
1606
1607 def _get_unique_id(self, prefix):
1608 global _uid
1609 _uid += 1
1610 return '__asyncpg_{}_{:x}__'.format(prefix, _uid)
1611
1612 def _mark_stmts_as_closed(self):
1613 for stmt in self._stmt_cache.iter_statements():

Callers 4

_get_statementMethod · 0.95
startMethod · 0.80
_bind_execMethod · 0.80
_bindMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected