MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / create_engine

Function create_engine

lib/sqlalchemy/engine/create.py:50–86  ·  view source on GitHub ↗
(
    url: Union[str, URL],
    *,
    connect_args: Dict[Any, Any] = ...,
    convert_unicode: bool = ...,
    creator: Union[_CreatorFnType, _CreatorWRecFnType] = ...,
    echo: _EchoFlagType = ...,
    echo_pool: _EchoFlagType = ...,
    enable_from_linting: bool = ...,
    execution_options: _ExecuteOptions = ...,
    future: Literal[True],
    hide_parameters: bool = ...,
    implicit_returning: Literal[True] = ...,
    insertmanyvalues_page_size: int = ...,
    isolation_level: IsolationLevel = ...,
    json_deserializer: Callable[..., Any] = ...,
    json_serializer: Callable[..., Any] = ...,
    label_length: Optional[int] = ...,
    logging_name: str = ...,
    max_identifier_length: Optional[int] = ...,
    max_overflow: int = ...,
    module: Optional[Any] = ...,
    paramstyle: Optional[_ParamStyle] = ...,
    pool: Optional[Pool] = ...,
    poolclass: Optional[Type[Pool]] = ...,
    pool_logging_name: str = ...,
    pool_pre_ping: bool = ...,
    pool_size: int = ...,
    pool_recycle: int = ...,
    pool_reset_on_return: Optional[_ResetStyleArgType] = ...,
    pool_timeout: float = ...,
    pool_use_lifo: bool = ...,
    plugins: List[str] = ...,
    query_cache_size: int = ...,
    use_insertmanyvalues: bool = ...,
    **kwargs: Any,
)

Source from the content-addressed store, hash-verified

48
49@overload
50def create_engine(
51 url: Union[str, URL],
52 *,
53 connect_args: Dict[Any, Any] = ...,
54 convert_unicode: bool = ...,
55 creator: Union[_CreatorFnType, _CreatorWRecFnType] = ...,
56 echo: _EchoFlagType = ...,
57 echo_pool: _EchoFlagType = ...,
58 enable_from_linting: bool = ...,
59 execution_options: _ExecuteOptions = ...,
60 future: Literal[True],
61 hide_parameters: bool = ...,
62 implicit_returning: Literal[True] = ...,
63 insertmanyvalues_page_size: int = ...,
64 isolation_level: IsolationLevel = ...,
65 json_deserializer: Callable[..., Any] = ...,
66 json_serializer: Callable[..., Any] = ...,
67 label_length: Optional[int] = ...,
68 logging_name: str = ...,
69 max_identifier_length: Optional[int] = ...,
70 max_overflow: int = ...,
71 module: Optional[Any] = ...,
72 paramstyle: Optional[_ParamStyle] = ...,
73 pool: Optional[Pool] = ...,
74 poolclass: Optional[Type[Pool]] = ...,
75 pool_logging_name: str = ...,
76 pool_pre_ping: bool = ...,
77 pool_size: int = ...,
78 pool_recycle: int = ...,
79 pool_reset_on_return: Optional[_ResetStyleArgType] = ...,
80 pool_timeout: float = ...,
81 pool_use_lifo: bool = ...,
82 plugins: List[str] = ...,
83 query_cache_size: int = ...,
84 use_insertmanyvalues: bool = ...,
85 **kwargs: Any,
86) -> Engine: ...
87
88
89@overload

Callers 15

goMethod · 0.90
_has_sqliteMethod · 0.90
testing_engineFunction · 0.90
test_ddl_executeMethod · 0.90
test_connect_queryMethod · 0.90
test_kwargsMethod · 0.90
test_on_connect_urlMethod · 0.90
test_customMethod · 0.90
test_recycleMethod · 0.90
test_reset_on_returnMethod · 0.90
test_cant_parse_strMethod · 0.90

Calls 15

create_mock_engineFunction · 0.85
pop_kwargFunction · 0.85
_instantiate_pluginsMethod · 0.80
handle_dialect_kwargsMethod · 0.80
handle_pool_kwargsMethod · 0.80
popMethod · 0.45
_get_entrypointMethod · 0.45
get_async_dialect_clsMethod · 0.45
get_dialect_clsMethod · 0.45
setdefaultMethod · 0.45
create_connect_argsMethod · 0.45
unionMethod · 0.45

Tested by 15

test_ddl_executeMethod · 0.72
test_connect_queryMethod · 0.72
test_kwargsMethod · 0.72
test_on_connect_urlMethod · 0.72
test_customMethod · 0.72
test_recycleMethod · 0.72
test_reset_on_returnMethod · 0.72
test_cant_parse_strMethod · 0.72
test_urlattrMethod · 0.72
test_poolargsMethod · 0.72