abstract class Focus::SqlFormatter

Direct Known Subclasses

Defined in:

focus/sql_formatter.cr

Constant Summary

WHITESPACE_BYTE = 32_u8

Instance Method Summary

Instance Method Detail

def parameters : Array(Focus::BaseArgumentExpression) #

[View source]
def to_sql : String #

[View source]
def visit(expression : Focus::UnaryExpression(_)) #

[View source]
def visit(expression : Focus::BetweenExpression(_)) #

[View source]
def visit(expression : Focus::ColumnDeclaringExpression(_)) #

[View source]
def visit(expression : Focus::AggregateExpression(_)) #

[View source]
def visit(expression : Focus::SelectExpression) #

[View source]
def visit(expression : Focus::BaseColumnExpression) #

[View source]
def visit(expression : Focus::TableExpression) #

[View source]
def visit(expression : Focus::BinaryExpression) #

[View source]
abstract def visit(expression : Focus::ArgumentExpression) #

[View source]
def visit(expression : Focus::InsertExpression) #

[View source]
def visit(expression : Focus::UpdateExpression) #

[View source]
def visit(expression : Focus::InListExpression) #

[View source]
def visit(expression : Focus::JoinExpression) #

[View source]
def visit(expression : Focus::OrderByExpression) #

[View source]
def visit(expression : Focus::DeleteExpression) #

[View source]
def visit(expression : ExistsExpression) #

[View source]
def visit(expression : Focus::SqlExpression) #

TODO figure out a good way to handle formatters not providing all expected overloads


[View source]