Clear::SQL::InsertQuery
Inherits Clear::SQL::Query::OnConflict < Clear::SQL::Query::Connection < Clear::SQL::Query::Change < Clear::SQL::Query::CTE < Reference < Object
An insert query
cf. postgres documentation
[ WITH [ RECURSIVE ] with_query [, ...] ]
INSERT INTO table_name [ AS alias ] [ ( column_name [, ...] ) ]
{ DEFAULT VALUES | VALUES ( { expression | DEFAULT } [, ...] ) [, ...] | query }
[ ON CONFLICT [ conflict_target ] conflict_action ]
[ RETURNING * | output_expression [ [ AS ] output_name ] [, ...] ]
Constructors
new(table : Symbol | String, values)
Sourcenew(table : Symbol | String)
SourceInstance methods
clear_values
Sourceinto(table : Symbol | String)
Sourcekeys
Sourcereturning(str : String)
Sourcereturning
Sourcetable
Sourcetable?
Sourceto_sql
Sourcevalues(row : Hash(Symbolic, Inserable))
Sourcevalues
Sourcevalues(*args)
Source