Skip to content

Commit 52e815f

Browse files
DOC: add note on str cons to read_sql (pandas-dev#35503)
1 parent 5223cd1 commit 52e815f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/sql.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ def read_sql(
439439
con : SQLAlchemy connectable, str, or sqlite3 connection
440440
Using SQLAlchemy makes it possible to use any DB supported by that
441441
library. If a DBAPI2 object, only sqlite3 is supported. The user is responsible
442-
for engine disposal and connection closure for the SQLAlchemy connectable. See
442+
for engine disposal and connection closure for the SQLAlchemy connectable; str
443+
connections are closed automatically. See
443444
`here <https://docs.sqlalchemy.org/en/13/core/connections.html>`_.
444445
index_col : str or list of str, optional, default: None
445446
Column(s) to set as index(MultiIndex).

0 commit comments

Comments
 (0)