mirror of
https://github.com/lloeki/rebel.git
synced 2025-12-06 01:54:40 +01:00
additional helpers
This commit is contained in:
parent
6adbef3671
commit
22fe1981db
1 changed files with 12 additions and 0 deletions
|
|
@ -137,6 +137,18 @@ module Rebel::SQL
|
|||
raw("OUTER JOIN #{name(table)}").on?(on)
|
||||
end
|
||||
|
||||
def inner_join(table, on: nil)
|
||||
raw(inner? join(table, on: on))
|
||||
end
|
||||
|
||||
def left_outer_join(table, on: nil)
|
||||
raw(left? outer_join(table, on: on))
|
||||
end
|
||||
|
||||
def right_outer_join(table, on: nil)
|
||||
raw(right? outer_join(table, on: on))
|
||||
end
|
||||
|
||||
## Support
|
||||
|
||||
def name(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue