abstract class Marten::DB::Query::SQL::Annotation::Base

Direct Known Subclasses

Defined in:

marten/db/query/sql/annotation/base.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(field : Field::Base, alias_name : String, distinct : Bool, alias_prefix : String) #

[View source]

Instance Method Detail

def alias_name : String #

[View source]
def alias_prefix : String #

[View source]
def alias_prefix=(alias_prefix : String) #

[View source]
def clone #

[View source]
def distinct? : Bool #

[View source]

[View source]
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.


[View source]
abstract def to_sql : String #

Returns the SQL string corresponding to the annotation.


[View source]