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

Have op.create_table return a table object #236

Closed
sqlalchemy-bot opened this issue Oct 21, 2014 · 3 comments
Closed

Have op.create_table return a table object #236

sqlalchemy-bot opened this issue Oct 21, 2014 · 3 comments
Labels
duplicate This issue or pull request already exists feature

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by Jon Black

op.create_table doesn't return anything, but it would be handy to have it return a table object that can be passed to op.bulk_insert.

The problem I had was that I learnt how to use create_table, then realised I needed to copy data from an old table, and found bulk_insert. It wasn't immediately clear that bulk_insert needs an object, and when I realised that, it was clear that the op.create_table route couldn't be used.

Many examples use sqlalchemy.sql.table to create the table, but it's not clear to me how constraints are added to those.

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

yup, this is #205

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

Duplicate of #205.

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • added labels: duplicate
  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added feature duplicate This issue or pull request already exists labels Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists feature
Projects
None yet
Development

No branches or pull requests

1 participant