Local Database

It would be great to have access to a local database or have an implementation of something like TaffyDB (http://www.taffydb.com/)

Something similar too, I think personally TaffyDB is great if you are storing your data remotly in a noSQL DB.

Looking forward to see others make recomendations as well.

We do actually have an API for local storage: https://www.fusetools.com/learn/fusejs#storage

I’m skimming through the TaffyDB source now actually, and it appears it doesn’t have any kind of persistence out-of-the-box? Is this something you’re supposed to extend it with? It looks to me like it’s more of just a fancy db-like wrapper over in-memory objects. Is that correct? If that’s the case you should be able to just use it in your Fuse projects without any issues.

Just found that its store function tries to use localStorage. We currently don’t have a proper shim for setItem/getItem etc so currently we don’t quite fit the bill for this API (given you want persistence), but that’s definitely on the roadmap :slight_smile:

Actually, I was wrong - I did some testing and it appears we DO in fact have this shim. Libraries like TaffyDB should work just fine out-of-the-box :slight_smile: As far as implementing our own solution, this isn’t something we’re interested right now with so many solutions like TaffyDB readily available.

Jake,

Thank you so much for looking into this. I was going to check out the source and see if it stored locally or created a document that could be stored locally, then change it up a bit to use Fuse read/write.

Will test this out soon. Pretty cool stuff!

Awesome, let me know how it goes :slight_smile:

Hi Juan

Did you already got it to work? Can you please send me some basic example or shed some light on the subject?

I’m very interested in embed some sort of local database funcionality, which taffyDB seems to provide very well.

Thanks in advance.

Fusetooleer fellows, I’ve found and tested ForerunnerDB and so far its playing nice with Fuse.

Give it a try.

hector.lizarraga@gmail.com wrote:

Fusetooleer fellows, I’ve found and tested ForerunnerDB and so far its playing nice with Fuse.

Give it a try.

An example would be good. I keep getting error. Also TaffyDB isn’t working either.

Tom: What is the error you got, maybe I can help?

Tom wrote:

hector.lizarraga@gmail.com wrote:

Fusetooleer fellows, I’ve found and tested ForerunnerDB and so far its playing nice with Fuse.

Give it a try.

An example would be good. I keep getting error. Also TaffyDB isn’t working either.

Hi Tom

This is a basic example with ForerunnerDB. It’s the todo-app Fuse example using the ForeRunnerDB lib. Hope this can help you.

https://db.tt/KSmKEp13

Greetings

hello hector,the link is not available for download.Kindly assist .

Hi John, here’s the link:

https://drive.google.com/file/d/0BwSpHryOIdwvNTllMGpoZk9NQ3M/view?usp=sharing

Thank you Hector

I got result both from Forerunner and taffy however none of them are persistent. just stop the app and the data is gone :frowning:
I tested Hector code as well, It’s not persistent. Stop the app and start it again , all data is gone!

Hi Reza

I have it running in production embeded in my app and it’s data persistent. Sorry that my example it’s not.

Look at the forerunnerDB docs, there’s a section called “Data Persistence (Save and Load Between Pages)” that shows you how to use the load and save methods to achieve data persistence.

Greetings

1 Like