WRDSchema2017::SetupEntities (open)

Setup entities in the schema,

Syntax

LOADLIB "mod::wrd/lib/internal/wrdschema.whlib";

RECORD FUNCTION SetupEntities(RECORD ARRAY commands, RECORD options)

Parameters

RECORD ARRAY commands

A list Entity creation commands

STRING create

Tag of the wrdtype to create

RECORD defaults

Default values for unspecified entity cells

RECORD ARRAY entities

A list of CreateEntity records. Will be merged with 'defaults' and any referencing field containing `:`` as a value will be looked up internally

STRING entities._name

Name for the entity, used for references and in the return record

RECORD options

Options

RECORD continuesetup

An earlier SetupEntities result which we will be allowed to reference and will be merged into our result

Return value

RECORD

A record containing the created entities by their _name