abstract class
Marten::DB::Query::SQL::Annotation::Base
- Marten::DB::Query::SQL::Annotation::Base
- Reference
- Object
Direct Known Subclasses
- Marten::DB::Query::SQL::Annotation::Average
- Marten::DB::Query::SQL::Annotation::Count
- Marten::DB::Query::SQL::Annotation::Maximum
- Marten::DB::Query::SQL::Annotation::Minimum
- Marten::DB::Query::SQL::Annotation::Sum
Defined in:
marten/db/query/sql/annotation/base.crConstructors
Instance Method Summary
- #alias_name : String
- #alias_prefix : String
- #alias_prefix=(alias_prefix : String)
- #clone
- #distinct? : Bool
- #field : Marten::DB::Field::Base
-
#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.
Constructor Detail
def self.new(field : Field::Base, alias_name : String, distinct : Bool, alias_prefix : String)
#
Instance Method Detail
abstract
def 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.