可以在 "Shares"(共享资源)> "Schema"(模式)下找到模式上下文。
carp:> shares schema carp:shares schema> show Properties: NAME TYPE DESCRIPTION owner EmailAddress Owner Contact
每个属性都是模式上下文的子代,使用属性名称作为标记。要创建属性,请使用 create 命令:
carp:shares schema> create department
carp:shares schema department (uncommitted)> get
type = String
description = department
carp:shares schema department (uncommitted)> set description="Department Code"
description = Department Code (uncommitted)
carp:shares schema department (uncommitted)> commit
carp:shares schema>
在特定属性的上下文中,可使用标准 CLI 命令设置字段:
carp:shares schema> select owner
carp:shares schema owner> get
type = EmailAddress
description = Owner Contact
carp:shares schema owner> set description="Owner Contact Email"
description = Owner Contact Email (uncommitted)
carp:shares schema owner> commit
定义了定制属性后,可以像访问任何名称为 custom:property_name 的其他属性一样访问这些属性:
carp:shares default> get
...
custom:department = 123-45-6789
custom:owner =
...
carp:shares default> set custom:owner=bob@corp
custom:owner = bob@corp (uncommitted)
carp:shares default> commit