TomMalkin / SimQLe

The simplest way to use SQL in Python
MIT License
30 stars 5 forks source link

Add a dev-connections section to .connections.yaml #44

Closed TomMalkin closed 5 years ago

TomMalkin commented 5 years ago

Alongside connections and test-connection headings in the .connections.yaml file, we could also add a dev-connections heading. This would be for the use case that you are running something where you want to see if it's working while coding - similar to the approach Flask has with testing, development and production settings.

test-connections could be connecting to a temporary database spun up in a container and removed after tests, dev-connections could be for a container with the database where the data persists through development so you can see it in action, and then connections is your production databases.

TomMalkin commented 5 years ago

The SIMQLE_TEST env var might have to be changed to SIMQLE_MODE which is a string that has the options production, development or testing

TomMalkin commented 5 years ago

The more I think about it the more useful I think this will be so I'll add it in the v1 milestone

TomMalkin commented 5 years ago

Being worked on in #47

TomMalkin commented 5 years ago

closed in #48