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

Fix README.md code sample errors #106

Merged
merged 8 commits into from
Oct 2, 2020

Conversation

vinceatbluelabs
Copy link
Contributor

No description provided.

target = targets.table(schema_name='myschema',
table_name='mytable',
db_engine=db_engine)
results = move(source, target)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like just a copy and past-o where the same code got put in twice!

@@ -88,7 +88,7 @@ import os
sqlalchemy_url = f"postgresql+psycopg2://username:{os.environ['DB_PASSWORD']}@hostname/database_name"
db_engine = sqlalchemy.create_engine(sqlalchemy_url)

df = DataFrame.from_dict([{'a': 1}]) # or make your own!
df = DataFrame.from_dict([{'a': 1}]) # or make your own!
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it, let's make our sample code pass flake8.


session = Session()
session.set_stream_logging()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As-is, this sample code didn't log. Let's give people a good starting point that they can debug from!

@vinceatbluelabs vinceatbluelabs marked this pull request as ready for review October 2, 2020 15:19
Copy link
Contributor

@cwegrzyn cwegrzyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to argue with this! :shipit:

@vinceatbluelabs vinceatbluelabs merged commit e80a8ec into master Oct 2, 2020
@vinceatbluelabs vinceatbluelabs deleted the fix_readme_code_sample_issues branch October 2, 2020 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants