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

update-record-from-slot Generic Function

Summary

Updates an individual data item from a slot.

Package

sql

Signature

update-record-from-slot instance slot &key database

Arguments
instance
An instance of a View Class.
slot
A slot.
database
A database.
Description

The generic function update-record-from-slot updates an individual data item in the column represented by slot. database is only used if instance is not yet associated with any database, in which case a record is created in database. Only slot is initialized in this case; other columns in the underlying database receive default values. The argument slot is the CLOS slot name; the corresponding column names are derived from the View Class definition.

See also

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


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