[go: up one dir, main page]

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: Clean up Python sample at cloud-sql/postgres/sqlalchemy #10023

Merged
merged 2 commits into from
May 24, 2023

Conversation

m-strzelczyk
Copy link
Contributor

Description

Fixes b/280881086

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: cloudsql labels May 22, 2023
@m-strzelczyk m-strzelczyk marked this pull request as ready for review May 22, 2023 13:45
@m-strzelczyk m-strzelczyk requested a review from a team May 22, 2023 13:45
@m-strzelczyk m-strzelczyk requested a review from a team as a code owner May 22, 2023 13:45
Copy link
Contributor
@engelke engelke left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -75,32 +83,44 @@ def migrate_db(db: sqlalchemy.engine.base.Engine) -> None:
# as the function is loaded. This is primarily to help testing.
@app.before_first_request
def init_db() -> sqlalchemy.engine.base.Engine:
"""Initiates connection to database and its' structure."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit - no apostrophe for possessive of it. This is one of English's many traps.

@engelke engelke merged commit 9fe89ac into main May 24, 2023
11 checks passed
@engelke engelke deleted the strzelczyk/fixit/280881086 branch May 24, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudsql samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants