class Lustra::SQL::UpdateQuery

Overview

TODO Documentation

Included Modules

Defined in:

lustra/sql/update_query.cr

Constructors

Instance Method Summary

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

execute(connection_name : String | Nil = nil) execute, execute_and_count(connection_name : String | Nil = nil) : Int64 execute_and_count, explain(connection_name : String | Nil = nil) : String explain, explain_analyze(connection_name : String | Nil = nil) : String explain_analyze

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

clear_wheres clear_wheres, not(&)
not(conditions : NamedTuple | Hash(String, Lustra::SQL::Any))
not(template : String)
not(template : String, *args)
not(template : String, **tuple)
not(**tuple)
not
, or(node : Lustra::Expression::Node)
or(&)
or(conditions : NamedTuple | Hash(String, Lustra::SQL::Any))
or(template : String, *args)
or(template : String, **tuple)
or(**tuple)
or
, where(node : Lustra::Expression::Node)
where(&)
where(conditions : NamedTuple | Hash(String, Lustra::SQL::Any))
where(template : String)
where(template : String, *args)
where(template : String, **tuple)
where(**tuple)
where

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

change! : self change!

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

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

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

cte : Hash(String, CTEAuthorized) cte, with_cte(name, request : CTEAuthorized)
with_cte(tuple : NamedTuple)
with_cte

Constructor Detail

def self.new(table : String | Symbol | Nil, wheres : Array(Lustra::Expression::Node) = [] of Lustra::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(Lustra::Expression::Node) #

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