Skip to content

Fork cloud sql sample into a separate postgres sample#1025

Merged
theacodes merged 1 commit intomasterfrom
cloudsql-split
Jul 17, 2017
Merged

Fork cloud sql sample into a separate postgres sample#1025
theacodes merged 1 commit intomasterfrom
cloudsql-split

Conversation

@theacodes
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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