class
Marten::DB::Query::SQL::Annotation::Sum
Defined in:
marten/db/query/sql/annotation/sum.crInstance Method Summary
-
#from_db_result_set(result_set : ::DB::ResultSet)
Extracts the annotation value from a DB result set and returns the right object corresponding to it.
-
#to_sql : String
Returns the SQL string corresponding to the annotation.
Instance methods inherited from class Marten::DB::Query::SQL::Annotation::Base
alias_name : String
alias_name,
alias_prefix : String
alias_prefix,
alias_prefix=(alias_prefix : String)
alias_prefix=,
clone
clone,
distinct? : Bool
distinct?,
field : Marten::DB::Field::Base
field,
from_db_result_set(result_set : ::DB::ResultSet)
from_db_result_set,
to_sql : String
to_sql
Constructor methods inherited from class Marten::DB::Query::SQL::Annotation::Base
new(field : Field::Base, alias_name : String, distinct : Bool, alias_prefix : String)
new
Instance Method Detail
def from_db_result_set(result_set : ::DB::ResultSet)
#
Description copied from class Marten::DB::Query::SQL::Annotation::Base
Extracts the annotation value from a DB result set and returns the right object corresponding to it.
def to_sql : String
#
Description copied from class Marten::DB::Query::SQL::Annotation::Base
Returns the SQL string corresponding to the annotation.