From d56c2dc5797475f5d0393098c7ef4b3bd2610a7f Mon Sep 17 00:00:00 2001 From: cruzzoe Date: Fri, 22 Nov 2019 16:19:26 +0000 Subject: [PATCH] Add documentation linking to sqlalchemy (#29373) --- pandas/core/generic.py | 6 +++++- pandas/io/sql.py | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b16a72f01c739..2e2ae4e1dfa0a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2596,7 +2596,11 @@ def to_sql( Name of SQL table. con : sqlalchemy.engine.Engine or sqlite3.Connection Using SQLAlchemy makes it possible to use any DB supported by that - library. Legacy support is provided for sqlite3.Connection objects. + library. Legacy support is provided for sqlite3.Connection objects. The user + is responsible for engine disposal and connection closure for the SQLAlchemy + connectable See `here \ + `_ + schema : str, optional Specify the schema (if database flavor supports this). If None, use default schema. diff --git a/pandas/io/sql.py b/pandas/io/sql.py index e90e19649f645..684e602f06d12 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -361,7 +361,9 @@ def read_sql( or DBAPI2 connection (fallback mode) Using SQLAlchemy makes it possible to use any DB supported by that - library. If a DBAPI2 object, only sqlite3 is supported. + library. If a DBAPI2 object, only sqlite3 is supported. The user is responsible + for engine disposal and connection closure for the SQLAlchemy connectable. See + `here `_ index_col : string or list of strings, optional, default: None Column(s) to set as index(MultiIndex). coerce_float : boolean, default True