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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: change floor database to drif #183

Closed
wants to merge 2 commits into from
Closed

Proposal: change floor database to drif #183

wants to merge 2 commits into from

Conversation

f7deleon
Copy link
Member

@f7deleon f7deleon commented Aug 3, 2023

♻️ Refactor


✏️ Description:

This is a proposal to change the database library from floor to drift. Currently, in order to model an object that we want to store in the database, use it in the app logic, and communicate to the backend we need to create two models and a serializer.

Drift allows us to generate the model and the serializer by automatically using its dsl when building the table so then the only time we spend developing is making the tables and DAOs.

Copy link
Collaborator

@mirland mirland left a comment

Choose a reason for hiding this comment

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

Nice! Maybe we can think about the pros and cons and make a decision

lib/core/source/project_local_source.dart Outdated Show resolved Hide resolved
stack_trace: 1.11.0
stock: 1.0.1
drift: 2.10.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

alpha

@f7deleon
Copy link
Member Author

f7deleon commented Sep 4, 2023

Nice! Maybe we can think about the pros and cons and make a decision

i think we can contemplate other options too! even no local source by default

Co-authored-by: Matías Irland <mirland@xmartlabs.com>
@f7deleon
Copy link
Member Author

I will close this PR since #196 replaces it by hive

@f7deleon f7deleon closed this Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants