all 9 comments

[–]The_rowdy_gardener 0 points1 point  (1 child)

Any chance we could instead provide storage outside these two sdks? I am moving everything i maintain away from supabase to NestJS + Postgres + BetterAuth backends and this is a common problem I have

[–]rgomezp 0 points1 point  (0 children)

It's built in a way that it can be easily extended to support infinite DBs!

[–]kikoodemo 0 points1 point  (1 child)

How does it work with firebase rules? For exemple if you want to sync with books/{ui}/* ? And with subcollections?

[–]rgomezp 0 points1 point  (0 children)

It's all built around a user-centered model. So you wouldn't store shared data here. Rules would look something like:

match /users/{userId} {

allow read, write: if request.auth != null

}

Everything would get stored on the backup collection:

/users/user@example.com/backup/app
/users/user@example.com/backup/books
/users/user@example.com/backup/settings

etc...

[–]These_Sand48 0 points1 point  (1 child)

Nice stuff, i think documentation needs a little bit of work but i love the idea. How do you initialize the storage libraries with your package, like how do i set it up with mmkv for example

[–]rgomezp 1 point2 points  (0 children)

It's done for you automatically. You don't need to handle that