class

Marten::DB::Query::SQL::Annotation::Base

Inherits Reference / Object

Constructors

new(field : Field::Base, alias_name : String, distinct : Bool, alias_prefix : String)
Source

Instance methods

alias_name
Source
alias_prefix
Source
alias_prefix=(alias_prefix : String)
Source
clone
Source
distinct?
Source
field
Source
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.

Source
to_sql(with_alias : Bool = true) : String

Returns the SQL string corresponding to the annotation.

Source