Skip to content

Fork cloud sql sample into a separate postgres sample #1025

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

Merged
merged 1 commit into from
Jul 17, 2017

Conversation

theacodes
Copy link
Contributor

No description provided.

@theacodes theacodes requested a review from andrewsg July 17, 2017 17:09
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 17, 2017
# Replace project and instance with the values obtained when configuring your
# Cloud SQL instance.
beta_settings:
cloud_sql_instances: INSTANCE_CONNECTION_NAME
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need both this beta_setting and the SQLALCHEMY_DATABASE_URI? Networking or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the beta setting actually tells the cloud sql proxy running on your instance to create the socket for the cloud sql instance.



def test_index():
main.db.create_all()
Copy link
Member

Choose a reason for hiding this comment

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

Do we have any way to safely tear these test tables down afterwards?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do, but it's not needed.

@theacodes theacodes merged commit 0deb8c9 into master Jul 17, 2017
@theacodes theacodes deleted the cloudsql-split branch July 17, 2017 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants