class Clear::SQL::UpdateQuery

Overview

TODO Documentation

Included Modules

Defined in:

clear/sql/update_query.cr

Constructors

Instance Method Summary

Instance methods inherited from module Clear::SQL::Query::Execute

execute(connection_name : String? = nil) execute

Instance methods inherited from module Clear::SQL::Query::Where

clear_wheres clear_wheres, or_where(node : Clear::Expression::Node)
or_where(__template : String, *__args)
or_where(__template : String, **__named_tuple)
or_where(&)
or_where
, where(node : Clear::Expression::Node)
where(&)
where(__conditions : NamedTuple | Hash(String, Clear::SQL::Any))
where(__template : String, *__args)
where(__template : String, **__tuple)
where(**tuple)
where

Instance methods inherited from module Clear::SQL::Query::Change

change! : self change!

Instance methods inherited from module Clear::SQL::Query::Connection

connection_name : String connection_name, use_connection(connection_name : String) use_connection

Instance methods inherited from module Clear::SQL::Query::CTE

cte : Hash(String, Clear::SQL::Query::CTE::Record) cte, with_cte(name, request : CTEAuthorized, recursive = false)
with_cte(tuple : NamedTuple)
with_cte
, with_recursive_cte(tuple : NamedTuple) with_recursive_cte

Constructor Detail

def self.new(table, wheres = [] of Clear::Expression::Node) #

[View source]

Instance Method Detail

def set(row : NamedTuple) #

[View source]
def set(row : String) #

[View source]
def set(row : Hash(String, Updatable)) #

[View source]
def set(**row) #

[View source]
def to_sql #

[View source]
def wheres : Array(Clear::Expression::Node) #

Return the list of where clause; each where clause are transformed into Clear::Expression::Node