Hi Torsten, I'm very eager to add persistence to my Pharo app but struggling to find anything that works. Currently on Pharo 5. Ideally would like something that will work locally during construction that would work on the web with Seaside. Any help greatly appreciated.
Hi Doug,it would be better to discuss such things on the mailinglist or Discord than on the blog.Nonetheless three (beside many other) routes you can go: 1. if you like your data to be persisted in RELATION DATABASES then use a file based SQlite DB (check GlorpSQLite in catalog) for local work and use another database in production (for instance PostgreSQL with https://github.com/svenvc/P3) or check with the developers of Garage for other DB options. I would use Glorp as the abstraction layer (Object relation mapper) to abstract from the DB details so you do not have to take care of too many RDBMS details and stay more portable with the DB options 2. if you like your data in NoSQL then use a local file based UNQLite database and for deployment use later scalable databases like Mongo. Voyage framework allows you to abstract and use both (check for VoyageMongo and VoyageUnqlite in catalog) https://github.com/pharo-nosql/voyage 3. if you like to only work with objects then check Gemstone (develop with Seaside in Pharo and deploy and run in Gemstone server)
Post a Comment