Skip to main content
Version: 3.x

View

Views are used to model SQL views in the database.

Syntax​

view NAME (with MIXIN_NAME(,MIXIN_NAME)*)? {
FIELD*
ATTRIBUTE*
}
  • NAME:

    Name of the model. Needs to be unique in the entire schema. Must be a valid identifier.

  • FIELD:

    Arbitrary number of fields. See Field for details.

  • ATTRIBUTE:

    Arbitrary number of attributes. See Attribute for details.

  • MIXIN_NAME:

    Name of a custom type used as a mixin.

Example​

view UserInfo {
id Int
email String
name String
}
Comments
Feel free to ask questions, give feedback, or report issues.

Don't Spam


You can edit/delete your comments by going directly to the discussion, clicking on the 'comments' link below