Re: [web2py] Re: pyDAL -> jsDAL?

2019-04-30 Thread António Ramos
If vuejs is the way to go (thank you massimo for the choice...) i think it should evolve also to vuex for client store and use something like this for persistence. https://flaviocopes.com/vuex-persist-localstorage/ I think we can kill 2 rabbits with just one bullet... Em ter, 30 de abr de 2019 às

[web2py] Re: pyDAL -> jsDAL?

2019-04-30 Thread villas
Hi Scott It's probably unrealistic to imagine that a proper DB would be stored locally. I mean, where would its contents come from? If the answer is a remote DB, then you are already back at square one. However, it still makes sense to cache data on the client side. When the cache gets

[web2py] Re: pyDAL -> jsDAL?

2019-04-30 Thread Anthony
There is no SQLite in the browser, unless you are talking about something like https://github.com/kripken/sql.js, though that is very heavy and is in-memory only. There are a number of packages that provide an abstraction over IndexedDB, such as Dexie.js, AlaSQL, Nano-SQL, Lovefield, etc. Maybe