class
Breeze::SaveBreezeSqlStatement
- Breeze::SaveBreezeSqlStatement
- Breeze::BreezeSqlStatement::SaveOperation
- Avram::SaveOperation(Breeze::BreezeSqlStatement)
- Reference
- Object
Defined in:
breeze/operations/save_breeze_sql_statement.crConstant Summary
-
ATTRIBUTES =
[] of Nil
-
COLUMN_ATTRIBUTES =
[{name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: statement, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: args, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: model, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: elapsed_text, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: breeze_request_id, type: BreezeRequest::PrimaryKeyType, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: statement, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: args, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: model, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: elapsed_text, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: breeze_request_id, type: BreezeRequest::PrimaryKeyType, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
-
FOREIGN_KEY =
"breeze::breeze_sql_statement_id"
-
OPERATION_NEEDS =
[] of Nil
Constructors
-
.new(record : T, params : Avram::Paramable, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.new(params : Avram::Paramable, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.new(record : T, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.new(id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
Class Method Summary
-
.create(params, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE, &)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.create(id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE, &)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.create(params : Hash, **named_args, &)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.create!(params, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.create!(id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.create!(params : Hash, **named_args)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.update(record : T, with params, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE, &)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.update(record : T, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE, &)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.update(record : T, params : Hash, **named_args, &)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.update!(record : T, with params, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.update!(record : T, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
-
.update!(record : T, params : Hash, **named_args)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
Macro Summary
Instance Method Summary
-
#set_attributes(id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted.
Instance methods inherited from class Breeze::BreezeSqlStatement::SaveOperation
args
args,
args=(_value)
args=,
attributes
attributes,
breeze_request_id
breeze_request_id,
breeze_request_id=(_value)
breeze_request_id=,
created_at
created_at,
created_at=(_value)
created_at=,
elapsed_text
elapsed_text,
elapsed_text=(_value)
elapsed_text=,
id
id,
id=(_value)
id=,
model
model,
model=(_value)
model=,
permitted_params : Hash(String, Array(String) | String)
permitted_params,
required_attributes
required_attributes,
set_args_from_param(_value)
set_args_from_param,
set_attributes(id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
set_attributes,
set_breeze_request_id_from_param(_value)
set_breeze_request_id_from_param,
set_created_at_from_param(_value)
set_created_at_from_param,
set_elapsed_text_from_param(_value)
set_elapsed_text_from_param,
set_id_from_param(_value)
set_id_from_param,
set_model_from_param(_value)
set_model_from_param,
set_statement_from_param(_value)
set_statement_from_param,
set_updated_at_from_param(_value)
set_updated_at_from_param,
statement
statement,
statement=(_value)
statement=,
updated_at
updated_at,
updated_at=(_value)
updated_at=
Constructor methods inherited from class Breeze::BreezeSqlStatement::SaveOperation
new(record : T, params : Avram::Paramable, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)new(params : Avram::Paramable, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
new(record : T, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
new(id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE) new
Class methods inherited from class Breeze::BreezeSqlStatement::SaveOperation
create(params, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE, &)create(id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE, &)
create(params : Hash, **named_args, &) create, create!(params, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
create!(id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
create!(params : Hash, **named_args) create!, update(record : T, with params, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE, &)
update(record : T, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE, &)
update(record : T, params : Hash, **named_args, &) update, update!(record : T, with params, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
update!(record : T, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, statement : String | Avram::Nothing = IGNORE, args : String | Avram::Nothing | Nil = IGNORE, model : String | Avram::Nothing | Nil = IGNORE, elapsed_text : String | Avram::Nothing = IGNORE, breeze_request_id : BreezeRequest::PrimaryKeyType | Avram::Nothing | Nil = IGNORE)
update!(record : T, params : Hash, **named_args) update!
Macros inherited from class Breeze::BreezeSqlStatement::SaveOperation
param_key(key)
param_key
Constructor Detail
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
Class Method Detail
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation
Macro Detail
Instance Method Detail
@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation