Module: PGB::Shortcuts

Extended by:
Shortcuts
Included in:
EvaluationContext, Model, Model, Shortcuts
Defined in:
lib/pgb/shortcuts.rb

Overview

TODO Support dynamic param evaluation

Instance Method Summary collapse

Instance Method Details

#[]Object



28
29
30
# File 'lib/pgb/shortcuts.rb', line 28

def [](...)
  PGB::Identifier.new(...)
end

#executeObject



8
9
10
# File 'lib/pgb/shortcuts.rb', line 8

def execute(...)
  PGB.execute(...)
end

#from(table) ⇒ Object



16
17
18
# File 'lib/pgb/shortcuts.rb', line 16

def from(table)
  PGB::Query.new(table)
end

#funcObject



20
21
22
# File 'lib/pgb/shortcuts.rb', line 20

def func(...)
  PGB::FunctionCall.new(...)
end

#litObject



24
25
26
# File 'lib/pgb/shortcuts.rb', line 24

def lit(...)
  PGB::Literal.new(...)
end

#selectObject



12
13
14
# File 'lib/pgb/shortcuts.rb', line 12

def select(...)
  PGB::Query.new(nil, ...)
end