Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Adding database middleware with support for readonly db #13

Merged
merged 6 commits into from
Oct 13, 2021

Conversation

paganotoni
Copy link
Member

@paganotoni paganotoni commented Oct 13, 2021

This PR adds the database middleware with the intention to update Ox applications to use it by default. I used SQLite as the database being used in the tests as its easier to create and connect to it. Also, I decided to put the middleware folder in the root of our package as I asked the Go community and it seems pkg or lib are not as idiomatic as I thought. If this grow I'm envisioning we will have to move it. For now we're ok.

Update:
I decided to update our generated app to use the middleware in this same PR.

@netlify
Copy link

netlify bot commented Oct 13, 2021

✔️ Deploy Preview for oxcli canceled.

🔨 Explore the source changes: b5af9bb

🔍 Inspect the deploy log: https://app.netlify.com/sites/oxcli/deploys/61673a2d830b68000778fcba

@paganotoni paganotoni merged commit 98cb3de into main Oct 13, 2021
@paganotoni paganotoni deleted the task-database-middleware branch October 13, 2021 20:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants