Name

duro::type - create and destroy user-defined types

Synopsis

duro::type typename arg ?arg ...?

Description

duro::type define typename possreps ?constraint? txId

This subcommand defines the user-defined type typename under the control of the transaction specified by txId. The type constraint is specified by the optional argument constraint.

possreps is a list of possible representations. Each possible representation is itself a list of two elements.

The first element is the name of the possible representation.

The second element is a list of components. Each component is represented by a list consisting of two elements. The first element is the component name, and the second element is the component type. Types are specified as in duro::table create.

duro::type implement typename ?arep? txId

This subcommand implements the type typename under the control of the transaction specified by txId. The type must have been defined using duro::type define.

The optional argument arep is a type which will serve as the actual representation for the type.

duro::type drop typename txId

This subcommand deletes the type typename under the control of the transaction specified by txId.

$Id: type.html,v 1.4 2005/03/28 11:52:53 rhartmann Exp $