Name

addassoc — add a new association record connecting a model with a set

Synopsis

use Wacs;
use Wacs::WacsStd;
scalar addassoc(...); 
 

Parameters

parameterdescription
setnothe set number to be associated with a model (see below)
modelnothe model number to be associated with the above set
asstypethe type of the association - currently only G for general but this might be changed in the future - see the schema reference for the assoc table for more information.
dbhandleThe open database handle for use in querying the database

Summary

The addassoc function is designed to add association records between sets and models. To do this it creates a new record in the assoc database table using the next available primary key for that table. To call addassoc you need to provide a set number, a model number and a dbhandle to a currently open database session. Optionally you may also provide an association type although currently only one type, G for general is defined in the WACS database dictionary. addassoc protects against adding multiple associations between the same model and set.

Availability

As a collection administration function, addassoc is currently only available in perl.