Relationships between view classes
Warren Lynn <[email protected]> Wed, 5 May 2010 22:49:37 -0400
| Newsgroups | gmane.lisp.clsql.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am a newbie to both CL and CLSQL. It seems to me that CLSQL does not provide much support to manage the relationship (one2many, many2many and etc) between view classes. What I mean is, take the classic "company/employee" example, if I have a company instance, can I just add an employee instance to the company instance's "employees" slot, save the company instance, and the database will be updated to reflect the relationship (or the reverse, just set the employee's "company" slot to an company instance without fiddling with all those primary keys)? For many2many relationship, can CLSQL automatically generate and maintain the intermediate mapping table? Basically, I am missing those nice features from Django data model. I am intereted in CL because I am convinced that CL can express high level abstractions more elegantly than other languages, so I am puzzled that CLSQL is at such a low level, although it seems well designed at that level. If CLSQL's scope is intentionally limited to that level, can anyone give me some pointers to CL packages/systems that can handle higher level data model relationships, based on CLSQL or any other SQL based database backend. Thanks a lot. Some side notes: Right now I am not considering things like Elephant because its complexity scares me and I am afraid if I get a corrupted DB I will never be able to recover it (with SQL DB at least I can look at the raw table and fix it by hand). Plus it does not compile on my system. _______________________________________________ CLSQL mailing list [email protected] http://lists.b9.com/cgi-bin/mailman/listinfo/clsql