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

Investigate the way to work with Schemas and unleashing the whole power of Realm #1

Open
adrienthiery opened this issue Aug 19, 2017 · 4 comments

Comments

@adrienthiery
Copy link
Contributor

No description provided.

@Kabangi
Copy link

Kabangi commented Sep 21, 2017

@adrienthiery Could you please write down your thoughts on this, I would want to be part of this project. Wondering how you thinking about this issue:- i.e schemas, encryption, pub/sub and migration support

@adrienthiery
Copy link
Contributor Author

Hi @Kabangi ,
My leads would be to check how actually redux-persist is calling the adapter to see if we could pass additional infos like the schema or how if we could override the methods to store and restore.

But to be honest, I am using Realm only as a local database, not with its' server counterpart.

@Kabangi
Copy link

Kabangi commented Sep 22, 2017

I think supporting the server counterpart will really introduce so many issues.

My use cases is to support realm as a local cache with encryption support and nothing more.

My initial thought for this was probably passing redux-persist interface implementation that depends on a realm singleton to the store. Then expose the construction of the singleton to the user with a configuration options such as schema, encryption key, migrations etc.

In regard to "how if we could override the methods to store and restore." I have no idea how to go about this.

I will be forking your repo over the weekend and play around with it.

@eduardojunio
Copy link

@Kabangi my use case is the same as yours. How would you expose the construction of the singleton? This is my fork: https://github.com/eduardojunio/redux-persist-realm, I removed the singleton, I'm exporting a constructor function that does nothing actually, I did this because I was trying to export a singleton constructor as you said, but I don't came up with any ideia on how to do it.

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

No branches or pull requests

3 participants