MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _get_initdb_options

Function _get_initdb_options

asyncpg/_testbase/__init__.py:230–240  ·  view source on GitHub ↗
(initdb_options=None)

Source from the content-addressed store, hash-verified

228
229
230def _get_initdb_options(initdb_options=None):
231 if not initdb_options:
232 initdb_options = {}
233 else:
234 initdb_options = dict(initdb_options)
235
236 # Make the default superuser name stable.
237 if 'username' not in initdb_options:
238 initdb_options['username'] = 'postgres'
239
240 return initdb_options
241
242
243def _init_default_cluster(initdb_options=None):

Callers 2

_init_default_clusterFunction · 0.85
new_clusterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected