articles filed under clsql
Create/update function for CLSQL
posted on 05/09/08 at 2:51 p.m. |
|
Django has a very handy model method in its database library called get_or_create, which either creates a new record using the keyword arguments passed as field values or gets a record using the arguments passed. Here is a simple way to implement a similar function in lisp.