Skip to content
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

Return the table in create_table #205

Closed
sqlalchemy-bot opened this issue May 26, 2014 · 8 comments
Closed

Return the table in create_table #205

sqlalchemy-bot opened this issue May 26, 2014 · 8 comments

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by Antoine Bertin (@diaoul)

This is useful for subsequent bulk_insert calls.
Use case: create a constant table an fill it with constant data (a role table for example)

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

this has been discussed, thought there might be an issue for it already but I cant find it, so we'll leave this.

@sqlalchemy-bot
Copy link
Author

Antoine Bertin (@diaoul) wrote:

Other way to ease this is to allow bulk_insert to take the table name (string) as first argument.

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

Issue #236 was marked as a duplicate of this issue.

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • edited description

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • set milestone to "tier 1"

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

  • The :class:~sqlalchemy.schema.Table object is now returned when
    the :meth:.Operations.create_table method is used. This Table
    is suitable for use in subsequent SQL operations, in particular
    the :meth:.Operations.bulk_insert operation.
    fixes Return the table in create_table #205

8272c85

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

Issue #161 was marked as a duplicate of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant