class

Avram::DeleteOperation(T)

Inherits Avram::AddColumnAttributes < Avram::InheritColumnAttributes < Avram::DeleteCallbacks < Avram::AfterCommitCallback < Avram::CallbackHelpers < Avram::ParamKeyOverride < Avram::OperationErrors < Avram::Validations < Avram::DefineAttribute < Avram::NeedyInitializerAndDeleteMethods < Reference < Object

Constants

ATTRIBUTES = [] of Nil
OPERATION_NEEDS = [] of Nil

Class methods

param_key
Source

Instance methods

after_commit(_record : T)
Source
after_delete(_record : T)
Source
before_delete
Source
custom_errors
database

A helper method to backfill accessing the database before they were split in to read/write methods

Source
delete
Source
delete!
Source
deleted?

Returns true if the operation has run and saved the record successfully

Source
mark_as_deleted
Source
mark_as_failed
Source
primary_key_name(*args, **options)
Source
primary_key_name(*args, **options, &)
Source
table_name(*args, **options)
Source
table_name(*args, **options, &)
Source
valid?

Returns true if all attributes are valid, and there's no custom errors

Source
write_database(*args, **options)
Source
write_database(*args, **options, &)
Source

Macros

param_key(key)

Nested types