Skip to content

DOC: to_sql accepting Engine vs. Connectable #34824

Closed
@gordthompson

Description

@gordthompson

Location of the documentation

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_sql.html

Documentation problem

Documentation says that con is to be a "sqlalchemy.engine.Engine or ..." while source says that con can be a "SQLAlchemy connectable(engine/connection) or ..."

Suggested fix for documentation

Documentation should mention that a SQLAlchemy Connection is acceptable because some operations like an upsert via a temporary table in SQL Server need to ensure that the same DBAPI connection is used for the entire operation. (SQL Server local temp tables are only visible to the connection/session that created them).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions