MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _generate_driver_urls

Function _generate_driver_urls

lib/sqlalchemy/testing/provision.py:192–211  ·  view source on GitHub ↗
(url, extra_drivers)

Source from the content-addressed store, hash-verified

190
191
192def _generate_driver_urls(url, extra_drivers):
193 main_driver = url.get_driver_name()
194 extra_drivers.discard(main_driver)
195
196 url = generate_driver_url(url, main_driver, "")
197 yield url
198
199 for drv in list(extra_drivers):
200 if "?" in drv:
201 driver_only, query_str = drv.split("?", 1)
202
203 else:
204 driver_only = drv
205 query_str = None
206
207 new_url = generate_driver_url(url, driver_only, query_str)
208 if new_url:
209 extra_drivers.remove(drv)
210
211 yield new_url
212
213
214@register.init

Callers 1

generate_db_urlsFunction · 0.85

Calls 4

get_driver_nameMethod · 0.80
generate_driver_urlFunction · 0.70
discardMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected