Skip to content

Commit f90594f

Browse files
cruzzoeproost
authored andcommitted
Add documentation linking to sqlalchemy (pandas-dev#29373)
1 parent e113fe0 commit f90594f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pandas/core/generic.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -2596,7 +2596,11 @@ def to_sql(
25962596
Name of SQL table.
25972597
con : sqlalchemy.engine.Engine or sqlite3.Connection
25982598
Using SQLAlchemy makes it possible to use any DB supported by that
2599-
library. Legacy support is provided for sqlite3.Connection objects.
2599+
library. Legacy support is provided for sqlite3.Connection objects. The user
2600+
is responsible for engine disposal and connection closure for the SQLAlchemy
2601+
connectable See `here \
2602+
<https://docs.sqlalchemy.org/en/13/core/connections.html>`_
2603+
26002604
schema : str, optional
26012605
Specify the schema (if database flavor supports this). If None, use
26022606
default schema.

pandas/io/sql.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ def read_sql(
361361
or DBAPI2 connection (fallback mode)
362362
363363
Using SQLAlchemy makes it possible to use any DB supported by that
364-
library. If a DBAPI2 object, only sqlite3 is supported.
364+
library. If a DBAPI2 object, only sqlite3 is supported. The user is responsible
365+
for engine disposal and connection closure for the SQLAlchemy connectable. See
366+
`here <https://docs.sqlalchemy.org/en/13/core/connections.html>`_
365367
index_col : string or list of strings, optional, default: None
366368
Column(s) to set as index(MultiIndex).
367369
coerce_float : boolean, default True

0 commit comments

Comments
 (0)