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

Function create_engine

lib/sqlalchemy/engine/create.py:49–85  ·  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

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