abstract class Avram::SaveOperation(T)

Defined in:

charms.cr

Instance Method Summary

Instance Method Detail

def record! #

[View source]
def save : Bool #

Patched to ensure callbacks run for update operations even if no column attributes changed.

Also to ensure operation is marked as failed if a nested operation rolls back a database transaction


[View source]
def valid? : Bool #

Getting rid of default validations in Avram

See https://github.com/luckyframework/lucky/discussions/1209#discussioncomment-46030

All operations are expected to explicitly define any validations needed


[View source]