-
Notifications
You must be signed in to change notification settings - Fork 129
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
Update DB versions in docker demos #278
Conversation
shadinua
commented
Nov 6, 2018
- PostgreSQL 9.6 -> 11
- MySQL 5.7 -> MariaDB 10.3
* PostgreSQL 9.6 -> 11 * MySQL 5.7 -> MariaDB 10.3
yey, MariaDB in da house! |
examples/python/example_with_zone.py
Outdated
@@ -141,14 +143,14 @@ def write_data(data, connection): | |||
metadata.create_all(engine) | |||
|
|||
if args.print: | |||
print_data(args.zone_id, connection) | |||
print_data(args.zone_id, connection, driver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about place print('DB driver: {}'.format(driver))
before if args.print else
statement and don't pass it to 2 functions with extra parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, thanks :-)
@@ -109,6 +111,6 @@ def write_data(data, connection): | |||
connection = engine.connect() | |||
|
|||
if args.print: | |||
print_data(connection) | |||
print_data(connection, driver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here