Lustra::SQL::SelectBuilder
Inherits Lustra::SQL::Query::WithPagination < Lustra::SQL::Query::BeforeQuery < Lustra::SQL::Query::Change < Lustra::SQL::Query::Connection < Lustra::SQL::Query::Pluck < Lustra::SQL::Query::Fetch < Lustra::SQL::Query::Execute < Lustra::SQL::Query::Lock < Lustra::SQL::Query::Window < Lustra::SQL::Query::CTE < Lustra::SQL::Query::Aggregate < Lustra::SQL::Query::OffsetLimit < Lustra::SQL::Query::GroupBy < Lustra::SQL::Query::OrderBy < Lustra::SQL::Query::Having < Lustra::SQL::Query::Where < Lustra::SQL::Query::Join < Lustra::SQL::Query::From < Lustra::SQL::Query::Select
Constructors
Instance methods
A hook to apply some operation just before the query is executed.
call = 0
req = Lustra::SQL.select("1").before_query { call += 1 }
10.times { req.execute }
pp call # 10
Construct a delete query from this select query.
It uses only the from and the where clause fo the current select request.
Can be useful in some case, but
use at your own risk !
Return the list of where clause; each where clause are transformed into Lustra::Expression::Node