Forums

ORM for Cobra

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

ORM for Cobra

Postby AMIGrAve » Sat Apr 28, 2012 10:37 am

Hi all,

Googling about Cobra is quite difficult. I just discovered Cobra by chance while looking up for boo, but I'm surprise for the lack of resource about Cobra on the web. Hope the project is not dead !

I'd like to know if there exist an ORM or any SQL abstraction written in Cobra using the specificities of the language ? I'm targeting PostgreSQL but MySQL would be fine too.

Anyone ?
AMIGrAve
 
Posts: 6

Re: ORM for Cobra

Postby Charles » Sun Apr 29, 2012 2:07 pm

I would hope from the activity on this discussion forum that it is apparent that Cobra is not dead! :D

Also see my post "Repetitive Strain Injury Sucks" for why the project slowed down and why it will now pick up again.

I wrote an ORM in Python years ago and the same one in C# a few years after that. However, I have not had the time to work on an ORM in Cobra (I work on the compiler).

Recently, I came across RavenDB which may take an approach to data storage that does not require an ORM (which as you know is about mapping objects <--> sql). However, I have not had time to check it out. It would be interesting if someone did and reported their findings.

An alternative to ORM is to use the repository pattern which in some ways looks friendlier to OO enthusiasts than traditional ORM, but also seems to require a lot typing/coding.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: ORM for Cobra

Postby AMIGrAve » Mon Apr 30, 2012 4:17 am

Also see my post "Repetitive Strain Injury Sucks" for why the project slowed down and why it will now pick up again.


Sorry to hear that, I also have this problem from time to time and I have to wear something rigid at the arm in order to keep it straight.
Hope you're getting better.

I wrote an ORM in Python years ago and the same one in C# a few years after that. However, I have not had the time to work on an ORM in Cobra (I work on the compiler).


Is it open sourced ?

Recently, I came across RavenDB which may take an approach to data storage that does not require an ORM (which as you know is about mapping objects <--> sql). However, I have not had time to check it out. It would be interesting if someone did and reported their findings.


I'm not willing to use a document based data storgage for my project.
AMIGrAve
 
Posts: 6

Re: ORM for Cobra

Postby Charles » Mon Apr 30, 2012 11:37 am

The Python one is. It's called MiddleKit and is part of the "Webware for Python" project which is easy to find on the web.

The C# one was done under contract/work-for-hire and is not. Plus I cut a few corners so it's just "okay".

Speaking of which, I am a contractor. :D

Re: document databases, I understand. I'm still using SQL on all my projects. I'd still like to check out RavenDB sometime.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 13 guests