Some commands are defined in all extended relational-databases. The are called just like Database Operations.
Adds domain-row to the domains table if there is no row in the domains table associated with key
(car
domain-row)
and returns#t
. Otherwise returns#f
.For the fields and layout of the domain table, See Catalog Representation. Currently, these fields are
- domain-name
- foreign-table
- domain-integrity-rule
- type-id
- type-param
The following example adds 3 domains to the ‘build’ database. ‘Optstring’ is either a string or
#f
.filename
is a string andbuild-whats
is a symbol.(for-each (build 'add-domain) '((optstring #f (lambda (x) (or (not x) (string? x))) string #f) (filename #f #f string #f) (build-whats #f #f symbol #f)))