All Manuals > LispWorks® User Guide and Reference Manual > 45 The SQL Package

update-slot-from-record Generic Function

Summary

Updates a slot in a View Class instance.

Package

sql

Signature

update-slot-from-record instance slot => instance

Arguments
instance
An instance of a View Class.
slot
A slot name.
Values
instance
The updated View Class instance.
Description

The generic function update-slot-from-record updates the value in the slot slot of the View Class instance instance using the records in the database.

instance must be associated with a database.

The argument slot is the CLOS slot name; the corresponding column names are derived from the View Class definition.

The update is not recursive on joins. Join slots (that is, slots with :db-kind :join) are updated, but the joined objects are not updated.

See also

def-view-class
update-instance-from-records


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:56