Skip to content

support sqlalchemy connections #10104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
graingert opened this issue May 11, 2015 · 1 comment
Closed

support sqlalchemy connections #10104

graingert opened this issue May 11, 2015 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request IO SQL to_sql, read_sql, read_sql_query

Comments

@graingert
Copy link
Contributor

I'd like to be able to manage my own connections and transactions with sqlalchemy:

def foo(connection):
    pd.read_sql_query(query, con=connection)

def bar(connection, data):
    data.to_sql(name='foo', con=connection)

def main():
    with engine.connection() as conn, conn.begin():
        bar(foo(), connection=conn)
        bar(some_other_data, connection=conn)
graingert pushed a commit to graingert/pandas that referenced this issue May 11, 2015
@jorisvandenbossche jorisvandenbossche added the IO SQL to_sql, read_sql, read_sql_query label May 11, 2015
@jorisvandenbossche
Copy link
Member

See #7877. So closing this as a duplicate (but certainly comment there! or at the PR at once)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request IO SQL to_sql, read_sql, read_sql_query
Projects
None yet
Development

No branches or pull requests

2 participants