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

Platforms support #535

Closed
LennyLip opened this issue Jan 29, 2025 · 6 comments
Closed

Platforms support #535

LennyLip opened this issue Jan 29, 2025 · 6 comments

Comments

@LennyLip
Copy link

Hello, thanks for the app. Looking promise, local migrations is a cool feature.

As I see in deps you are using sqflite for local storage. Currentlly, sqflite supports only Android iOS macOS . Any plans to use something like drift to support all platforms?

I only found this text "Brick SQLite can be used when developing for Windows, MacOS, and Linux platforms." , but my question is about building for all platforms that supports by flutter.

ps. Can't find in docs, do we have something like OnlineOnlyWithRestModel or OffineOnlyWithRestModel ? For example, I need to get some data which I do not need to save to local store.

pps. And I can't find in docs, do we have a chance for full customization of Query or something like that. For example I need raw sql (local) request or non standart REST call (e.g. OPTIONS request, etc) (remote).

ppps. Incorrect link "This content has been moved to Offline Queue." Lookls like should be https://getdutchie.github.io/brick/#/offline_first/offline_queue

@LennyLip
Copy link
Author

ps. Can't find in docs, do we have something like OnlineOnlyWithRestModel or OffineOnlyWithRestModel ? For example, I need to get some data which I do not need to save to local store.

Ops, looks like duplicate of

@tshedor
Copy link
Collaborator

tshedor commented Jan 29, 2025

For other SQLite platforms, SQFlite has experimental support: https://pub.dev/packages/sqflite_common_ffi

@tshedor
Copy link
Collaborator

tshedor commented Jan 29, 2025

For advanced query options, you can use a RestQueryProvider in your query which supports RestRequest. This can be extensively customized.

For SQLite, SqliteProvider exposes several raw methods. However, I would discourage using these unless you're explicitly manipulating offline data. There is no guarantee that changing one provider's data will reach another one.

@LennyLip
Copy link
Author

For other SQLite platforms, SQFlite has experimental support: https://pub.dev/packages/sqflite_common_ffi

Thank you, do you have any experience of using sqflite_common_ffi_web with bricks?

@tshedor
Copy link
Collaborator

tshedor commented Jan 29, 2025

I've personally used the web version and it worked well. I haven't released a production app using it or put it under heavy load, so I can't speak to its durability. But I was impressed with how easy it was to use a SQLite interface in the browser

@LennyLip
Copy link
Author

I've personally used the web version and it worked well.

Great, thank you for your responses!

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

No branches or pull requests

2 participants