Tell us about your project!
|
|
Hi everyone, I’d like to hear more about you and the projects you use BaseTen for. Please reply to this post and write a short description and whatnot. This way we can add functionality that might be needed in application development. |
|
|
Hi Tuukka, as you’ve probably seen from the tickets I am one of the BT users. So far it’s almost finished (using the RC1 of BaseTen) and apart from the tickets I wrote I don’t see any functionality in BT I”d be in desperate need for. |
|
|
Creating and deleting rows should be undoable in manual commit mode. I don’t remember right now, if we have a test written for that, but it’s supposed to work. We’ll consider making at least creation undoable in the future. For deletion, it would probably be harder, if there are foreign keys or other things that have been created with ON DELETE CASCADE. |
|
|
Ah, I see, I forgot to mention that I am required to use autocommit mode (usability issue) so far. |
|
|
Like Tuukka mentioned, the reason DELETE operations cannot be undoed by BaseTen in autocommit mode is the fact that BaseTen has no information about what was deleted by ON DELETE CASCADE rules. I think it’s better to leave that stuff out than to claim that we do support undoing DELETE operations. In manual commit mode (before the commit, ie. before the “save” message), the undo state is maintained by the database itself with CHECKPOINTs. Because of this, we can undo, or ROLLBACK to the previous savepoint, with the knowledge that everything about the database returns to the previous state. There is no way to implement this in the autocommit mode. (And, because of this, just sending save messages all the time is not a solution either.) What I suggest you do is that on the delete operations in your application, you work directly with the NSUndoManager to record the events needed to reconstruct the deleted objects. This should be simple enough on a per-application basis, but much more difficult for us to solve generically. |
|
|
Sorry for the delay, I wasn’t able to get back to the project sooner. |
|
|
Hi Tuukka, I started working on a project for a POS system based on BaseTen. To time the work is done by an Access Program which is really ugly. And since a started using Mac I wanted to change it, so I started to play around with Cocoa (but I’m still a new-be). sry for my english i know it’s not the best… Greetings from Germany |