PAttribute

data class PAttribute(val name: String, val params: List<PArgument> = listOf(), val isBlockAttribute: Boolean)

An attribute on a field, e.g. @db.TinyBlob.

Constructors

Link copied to clipboard
constructor(name: String, params: List<PArgument> = listOf(), isBlockAttribute: Boolean)

Types

Link copied to clipboard

Properties

Link copied to clipboard

True if the attribute has two at-signs (e.g. @@id), false otherwise (e.g. @id).

Link copied to clipboard

Name of the attribute. This includes any namespace-like component, e.g. for @db.TinyBlob(...), the name will be db.TinyBlob

Link copied to clipboard

List of arguments provided to this attribute within brackets (...). Empty if none are provided.