The problem is no one knows what it 'does well' yet :-)
It is missing many of the features Django already has, and looks to be
behind SQLAlchemy which people are already working on integrating in
some fashion (maybe).
-Doug
1 >>
> class Person(object):
2 ... __storm_table__ =
"person"
3 ... id
= Int(primary=True)
4 ... name = Unicode
()
So, I have to declare a __storm_table__ and id for every model. That should be assumed by default and allowed to be overwritten (in my opinion).
1 >>> class Employee(
Person):
2 ..
. __storm_table__ = "employee"
3
... company_id = Int(
)
4 ... company
= Reference(company_id, Company.
id)Here we see that I have to declare a company_id and the the foreign key - Django does this in one step with ForeignKey(Model).They also support multiple primary keys! *grumble*
On Jul 10, 4:10 pm, "Sean Patrick Hogan" <scad...@gmail.com> wrote:
> It's also just very verbose.
>
> 1 >>> class Person(object):
> 2 ... __storm_table__ = "person"
> 3 ... id = Int(primary=True)
> 4 ... name = Unicode()
>
> So, I have to declare a __storm_table__ and id for every model. That should
> be assumed by default and allowed to be overwritten (in my opinion).
>
> 1 >>> class Employee(Person):
> 2 ... __storm_table__ = "employee"
> 3 ... company_id = Int()
> 4 ... company = Reference(company_id, Company.id)
>
> Here we see that I have to declare a company_id and the the foreign key -
> Django does this in one step with ForeignKey(Model).
>
> It just seems that Django's ORM is already syntactically nicer and, other
> than inheritance, Storm doesn't seem to have any really compelling feature.
>
So far it seems like it's main competing feature is handling
multiple-databases easily and joining across them.
Damien Gassart saw these posts on digg, made by zzzeek and niemeyer,
the SQLAlchemy and Storm lead developers, respectively:
http://programming.reddit.com/info/24oo3/comments