-
Notifications
You must be signed in to change notification settings - Fork 145
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
Orm? #43
Comments
this is far from what you are looking for dude.this repo is created for a practical cross platform solutions that facilitate to create high level library just once for all platforms and reuse code . |
Hey @hamedmohammadi I'm not sure that comment is very helpful, this is a place for people to help each other and experiment and discuss. So, I think actually this is a good place for practical discussions like this. As far as ORM's go - I don't have any good answers unfortunately. I have a few ideas of my own on architecture for data modeling, but not ORMs. I'd love to hear other opinions on this. @daviswalker please keep me up to date on anything you find - I'd be curious to hear. |
Let me know if there's a better place for this kind of "discussion board" topic than the issues list. After some searching and experimentation we've started thinking more about a view model interface, in particular a way to deliver update notifications to the right UI at the right time. You've got a simple example here in your user interface example, but when the app gets complicated I imagine there's a need for some real smarts that detects changes to the database, updates the corresponding view models, and delivers those notifications upwards. Is there anything in existence to help with this, I wonder? In iOS this could be done as a fetched results controller, which you initialize with a query and every time the output of the query changes you get called. For example. |
Ya, I'm a big fan of the view model way of doing things as well. I've been brainstorming some ideas for observing changes to the database as you suggest. I had some local experimentations that I pushed up here: https://github.com/libmx3/mx3/tree/wip/observe_sqlite The idea is to have to 2 sqlite connections (but one database) in WAL mode on the same database. Then, by starting a read transaction on one connection, you can fetch the old and new versions, and build a changeset of that transaction, modeled here. Hopefully this isn't reinventing the wheel, but either way it is a fun little project. |
ok @skabbes i intent to help may be it was not the right way . sry 👍 |
@hamedmohammadi No problem, I just think this project is probably even more useful as a discussion forum as it is just raw code. |
Seems to me like a c++ ORM makes the most sense so you can share as much of https://github.com/paulftw/hiberlite ᐧ On Sat, Jan 24, 2015 at 11:08 AM, Steven Kabbes [email protected]
|
Hiberlite doesn't seem to be very mature, not very well maintained, not exception safe etc. I dug up a few others, POCO::Data, QxORM, and not an ORM but sqlpp11 but haven't vetted them yet. However, I am not a huge fan or ORM style db abstractions. Everything that I've worked on more advanced than toy apps are hindered by them, not helped. Does anyone else echo that sentiment? |
Hi @daviswalker , I would recommend |
Has anyone experimented with different options for an ORM to sit on top of SQLite?
The text was updated successfully, but these errors were encountered: