mirror of
https://github.com/lloeki/rebel.git
synced 2025-12-06 10:04:39 +01:00
add LIKE
This commit is contained in:
parent
3c2d41788c
commit
06ff4227af
2 changed files with 8 additions and 0 deletions
|
|
@ -137,6 +137,10 @@ module Rebel::SQL
|
|||
def in(*v)
|
||||
Raw.new("#{self} IN (#{Rebel::SQL.values(*v)})")
|
||||
end
|
||||
|
||||
def like(n)
|
||||
Raw.new("#{self} LIKE #{Rebel::SQL.value(n)}")
|
||||
end
|
||||
end
|
||||
|
||||
@identifier_quote = '"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue