data Rotor::Constraint(kind: Symbol, field: Symbol, name: String, message: String)
A constraint of the database a changeset expects to be violated by
user input: on save, a violation of it (its SQLSTATE and name) is an
error on field rather than an exception.
/home/runner/work/rotor/rotor/src/changeset.qz:35
Methods
def kind -> Symbol
def field -> Symbol
def name -> String
def message -> String
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def code -> String
The SQLSTATE a violation of this kind has.
def with(*, kind: Symbol = …, field: Symbol = …, name: String = …, message: String = …) -> Rotor::Constraint
A copy with the fields given replaced.