All Manuals > LispWorks® User Guide and Reference Manual > 45 The SQL Package

list-attributes Function

Summary

Returns a list of attributes from a table in a database.

Package

sql

Signature

list-attributes table &key database owner => result

Arguments
table
A table in the database.
database
A database.
owner
nil, :all or a string.
Values
result
A list of attributes.
Description

The function list-attributes returns a list of attributes from table in database, which has a default value of *default-database*.

If owner is nil, only user-owned attributes are considered. This is the default.

If owner is :all, all attributes are considered.

If owner is a string, this denotes a username and only attributes owned by owner are considered.

See also

attribute-type
list-attribute-types
list-tables


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:56