Skip to main content
amitkinor
Participant
February 14, 2010
Question

SQLite in Cairngorm architecture

  • February 14, 2010
  • 1 reply
  • 926 views

Hi All I am new to MVC and Cairnhorm . I am developing an AIR application where besides the regular services that I define through ServiceLocator I have also SQL database  . My question is what is the right place for SQLite in MVC .Should it be accessed through ServiceLocator too and the sql commands queries with regular delegates?

Any help will be appreciated !

This topic has been closed for replies.

1 reply

Participant
February 25, 2010

So I have recently developed a Cairngorm library for persistence. It hasn't been announced yet, but feel free to take a look and try it: http://opensource.adobe.com/wiki/display/cairngorm/How+to+Use+the+Cairngorm+Persistence+Library

There is a sample app, which uses a DAO to access the database. It doesn't use the Service Locator. The app is implemented on the Parsley IoC container so the DAO is configured in the context and injected in to the Presentation Model. This is a sample so I would expect in a larger app that there is a domain layer.

amitkinor
amitkinorAuthor
Participant
February 25, 2010

Thanks for your help , Actually I have found the following SQLite oriented moderation of Cairngorm Library:

http://www.ericfeminella.com/blog/2007/07/16/air-cairngorm-air-extensions-for-cairngorm/

I implemeted it in my project .Must say it is very nice lib . I think in my next project I will try your approach .

Thanks !