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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init database layer v2 #4319

Merged
merged 3 commits into from
Oct 25, 2019
Merged

Init database layer v2 #4319

merged 3 commits into from
Oct 25, 2019

Conversation

alexandrebodin
Copy link
Member

@alexandrebodin alexandrebodin commented Oct 22, 2019

Description of what you did:

This PR initializes the new database layer design with a new central package and moves the connectors from beeing hooks to be simple connector that will be loaded on startup.

My PR is a:

  • 馃挜 Breaking change
  • 馃悰 Bug fix
  • 馃拝 Enhancement
  • 馃殌 New feature

Main update on the:

  • Admin
  • Documentation
  • Framework
  • Plugin

Manual testing done on the following databases:

  • Not applicable
  • MongoDB
  • MySQL
  • Postgres
  • SQLite

@alexandrebodin alexandrebodin added this to the 3.0.0-beta.18 milestone Oct 22, 2019
@alexandrebodin alexandrebodin changed the title Init dbal Init database layer Oct 22, 2019
@alexandrebodin alexandrebodin changed the title Init database layer Init database layer v2 Oct 22, 2019
examples/getstarted/index.d.ts Outdated Show resolved Hide resolved
@@ -0,0 +1 @@
# Strapi database layer
Copy link
Contributor

Choose a reason for hiding this comment

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

So powerful readme!

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add the words abstraction

Copy link
Member Author

Choose a reason for hiding this comment

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

We might just call it strapi-db to avoid any confusion 馃 what do you think

Copy link
Contributor

Choose a reason for hiding this comment

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

Hum yes I agree!
Let's rename :)

Copy link
Member

Choose a reason for hiding this comment

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

I would say you should expand this out to be strapi-database as all the other packages don't use short names or acronyms.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep I like that

@derrickmehaffy
Copy link
Member

@alexandrebodin what would be the best way to test this? I take it you guys plan to drop a migration guide eventually. Is it just pulling in the dbal package and removing the hooks and tweaking the database.json?

@alexandrebodin
Copy link
Member Author

@alexandrebodin what would be the best way to test this? I take it you guys plan to drop a migration guide eventually. Is it just pulling in the dbal package and removing the hooks and tweaking the database.json?

Yes basically rename strapi-hook-bookshelf to strapi-connector-bookshelf and set the database connector to bookshelf and reinstall the deps. Will be in a migration guide for sure. BTW this is only a develop PR not on master ;)

Copy link
Contributor

@lauriejim lauriejim left a comment

Choose a reason for hiding this comment

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

LGTM!
It鈥檚 one small PR for Alex, one giant leap for Strapi.

@derrickmehaffy
Copy link
Member

Haven't had time to test but so far looking good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants