MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / create_pool_from_url

Function create_pool_from_url

lib/sqlalchemy/engine/create.py:826–838  ·  view source on GitHub ↗
(
    url: Union[str, URL],
    *,
    poolclass: Optional[Type[Pool]] = ...,
    logging_name: str = ...,
    pre_ping: bool = ...,
    size: int = ...,
    recycle: int = ...,
    reset_on_return: Optional[_ResetStyleArgType] = ...,
    timeout: float = ...,
    use_lifo: bool = ...,
    **kwargs: Any,
)

Source from the content-addressed store, hash-verified

824
825@overload
826def create_pool_from_url(
827 url: Union[str, URL],
828 *,
829 poolclass: Optional[Type[Pool]] = ...,
830 logging_name: str = ...,
831 pre_ping: bool = ...,
832 size: int = ...,
833 recycle: int = ...,
834 reset_on_return: Optional[_ResetStyleArgType] = ...,
835 timeout: float = ...,
836 use_lifo: bool = ...,
837 **kwargs: Any,
838) -> Pool: ...
839
840
841@overload

Callers 4

test_url_onlyMethod · 0.90
test_pool_argsMethod · 0.90
test_pool_creationMethod · 0.90

Calls 2

create_engineFunction · 0.85
popMethod · 0.45

Tested by 4

test_url_onlyMethod · 0.72
test_pool_argsMethod · 0.72
test_pool_creationMethod · 0.72