Module: Seaquel
- Defined in:
- lib/seaquel.rb,
lib/seaquel/bit.rb,
lib/seaquel/module.rb,
lib/seaquel/quoter.rb,
lib/seaquel/generator.rb,
lib/seaquel/statement.rb,
lib/seaquel/statement/join.rb,
lib/seaquel/statement_gatherer.rb,
lib/seaquel/expression_converter.rb
Defined Under Namespace
Modules: AST
Classes: Bit, ExpressionConverter, Generator, InvalidStatement, Quoter, Statement, StatementGatherer
Class Method Summary
collapse
Class Method Details
.binding(position) ⇒ Object
33
34
35
|
# File 'lib/seaquel/module.rb', line 33
def binding position
AST::Binding.new(position)
end
|
.column(name) ⇒ Object
19
20
21
|
# File 'lib/seaquel/module.rb', line 19
def column name
AST::Column.new(name)
end
|
.delete ⇒ Object
15
16
17
|
# File 'lib/seaquel/module.rb', line 15
def delete
AST::Node.new(:delete)
end
|
.funcall(name, *args) ⇒ Object
36
37
38
|
# File 'lib/seaquel/module.rb', line 36
def funcall name, *args
AST::Funcall.new(name, args)
end
|
30
31
32
|
# File 'lib/seaquel/module.rb', line 30
def immediate ruby_obj
AST::Immediate.new(ruby_obj)
end
|
.insert ⇒ Object
12
13
14
|
# File 'lib/seaquel/module.rb', line 12
def insert
AST::Node.new(:insert)
end
|
.literal(text) ⇒ Object
27
28
29
|
# File 'lib/seaquel/module.rb', line 27
def literal text
AST::Literal.new(text)
end
|
.select ⇒ Object
6
7
8
|
# File 'lib/seaquel/module.rb', line 6
def select
AST::Node.new(:select)
end
|
.table(name) ⇒ Object
23
24
25
|
# File 'lib/seaquel/module.rb', line 23
def table name
AST::Table.new(name)
end
|
.update(table) ⇒ Object
9
10
11
|
# File 'lib/seaquel/module.rb', line 9
def update table
AST::Node.new(:update, table)
end
|