| dao-error | Base class for DAO related errors. |
|---|---|
| dao-nonexistent-id | Condition signaling the attempt to initialize a dao with a non-existant ID. |
| sql-column-does-not-exist | Condition signaling a missing column in an existing table. |
| sql-column-error | An error symbolizing that there is a column of the right name in the table, but its type is wrong |
| sql-error | Base class for SQL related errors. |
| unresolved-foreign-key | Condition signaling that a class with a foreign-key reference to a non-defined class has been tri... |
| dao | Base class for any PostgreSQL aware classes. |
|---|---|
| db-class | Metaclass for PostgreSQL aware classes. It takes two additional arguments in DEFTABLE: :INDICES (... |
| db-class-direct-slot-definition | |
| db-class-effective-slot-definition | |
| db-class-slot-definition |
| class-db-slots | Return the list of non-transient, instance allocated slots of a class. |
|---|---|
| db-slots-of | List of non-transient, instance allocated slots of OBJECT |
| get-dao | Get the dao corresponding to the given primary key, or return nil if it does not exist. |
| id-seq-name | |
| make-dao | Create a DAO of the given `TYPE' and initialize it according to the values of the alist `INITAR... |
| non-db-slot | Slot is transient or its allocation is :CLASS. |
| query-dao-fun | Execute the given `QUERY' (which can be either a string or a S-SQL expression, which will be eval... |
| relate | Make OBJECT1 and OBJECT2 enter into the many-to-many relation `RELATION'. If `RELATION' is not pr... |
| relatedp | Tell whether `OBJECT1' and `OBJECT2' are in the many-to-many relation `RELATION' (or the unnamed ... |
| select-dao-fun | Functional interface for SELECT-DAO. |
| set-fields | |
| slot-value-or-id-if-foreign | SLOT-VALUE if SLOT in OBJECT is not foreign, the ID of the object in the slot otherwise. If the o... |
| unrelate | `OBJECT1' stops being with `OBJECT2' in `RELATION'. |
| with-class-connection-fun | Functional interface to the macro WITH-CLASS-CONNECTION. the connection will be pooled. |
| with-connection-fun | Functional interface to the macro WITH-CONNECTION. |
| with-object-connection-fun | Functional interface to the macro WITH-OBJECT-CONNECTION. |
| actual-type | |
|---|---|
| add-constraint | Add a constraint to this slot's class' table. |
| apply-foreign-key-constraints | |
| apply-unique-constraints | |
| collect-constraints | |
| column-name | |
| column-type | |
| create-table | Create a table whose columns match the fields of CLASS in the connected database. If CLASS is a s... |
| dao-exists-p | Return a boolean indicating whether the given DAO exists in the database. |
| dao= | T if all the slot-values of `LEFT' and `RIGHT' are the same. If the compared values are not DAO... |
| database-consistent-with-specification | Return nothing if TABLE in the connected-p database meets its specification. Otherwise, throw an ... |
| delete-dao | Delete the given dao from the database. |
| get-all | Get all objects of TYPE that stand in a many-to-one relation with OBJECT. |
| id | |
| insert-dao | Insert the given DAO into the database. |
| needed-type | |
| relate-method | Relate `OBJECT1' with `OBJECT2' in `RELATION'. |
| relatedp-method | Tell if `OBJECT1' is related to `OBJECT2' in `RELATION'. |
| remove-finished-classes | Remove classes that are already finished from UNFINISHED-CLASSES of CLASS. |
| save-dao | Save a dao: update it when it already exists, insert it otherwise. |
| table-name | |
| try-delayed-constraints | Try to call all the delayed constraints present. |
| unrelate-method | `OBJECT1' stops being with `OBJECT2' in `RELATION'. |
| update-dao | Update the DAO's representation in the database with the values in the given object and return it... |
| def-many-to-many | Defines a possibly named many-to-many mapping between two persistent classes. There can be only o... |
|---|---|
| defdao | Wrapper macro for defining a class inheriting from DAO and with the metaclass set to DB-CLASS. |
| make-and-save | Make a DAO and immediately save it. Takes the same arguments as (make-instance ((dao dao))). |
| query-dao | Execute the given `QUERY' (which can be either a string or a S-SQL expression, which won't be eva... |
| select-dao | Select daos of TYPE for the rows in its table for which the given TEST holds. |
| with-class-connection | Run BODY in an environment with an always pooled connection to the database specified by the DB-C... |
| with-connection | Binds *database* to a new connection and runs body in that scope. |
| with-object-connection | Run BODY in an environment with a connection to the database specified by the DB-CLASS-CONNECTION... |