Module: Rooq::DSL

Defined in:
lib/rooq/dsl.rb,
lib/rooq/dsl/delete_query.rb,
lib/rooq/dsl/insert_query.rb,
lib/rooq/dsl/select_query.rb,
lib/rooq/dsl/update_query.rb

Defined Under Namespace

Classes: CTE, Cube, DeleteQuery, GroupingSets, InsertQuery, Join, JoinBuilder, OrderedSetOperation, Rollup, SelectQuery, SetOperation, Subquery, UpdateQuery

Class Method Summary collapse

Class Method Details

.delete_from(table) ⇒ Object



23
24
25
# File 'lib/rooq/dsl.rb', line 23

def delete_from(table)
  DeleteQuery.new(table)
end

.insert_into(table) ⇒ Object



15
16
17
# File 'lib/rooq/dsl.rb', line 15

def insert_into(table)
  InsertQuery.new(table)
end

.select(*fields) ⇒ Object



11
12
13
# File 'lib/rooq/dsl.rb', line 11

def select(*fields)
  SelectQuery.new(fields)
end

.update(table) ⇒ Object



19
20
21
# File 'lib/rooq/dsl.rb', line 19

def update(table)
  UpdateQuery.new(table)
end