addassoc — add a new association record connecting a model with a set
use Wacs;
use Wacs::WacsStd;
scalar addassoc( | ...) ; |
parameter | description |
---|---|
setno | the set number to be associated with a model (see below) |
modelno | the model number to be associated with the above set |
asstype | the 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.
|
dbhandle | The open database handle for use in querying the database |
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.