mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-01 13:52:12 +03:00
Renamed.
This commit is contained in:
parent
4338e2dfaa
commit
e9b4f894c4
@ -14,7 +14,7 @@ module Language.SQL.Keyword.Type (
|
||||
word,
|
||||
wordShow, unwordsSQL,
|
||||
|
||||
string, integer,
|
||||
unsafeString, integer,
|
||||
|
||||
stringMap
|
||||
) where
|
||||
@ -82,8 +82,8 @@ unwordsSQL :: [Keyword] -> String
|
||||
unwordsSQL = unwords . map wordShow
|
||||
|
||||
-- | Make SQL string expression. No escape logic, so this is unsafe function.
|
||||
string :: String -> Keyword
|
||||
string = Sequence . ('\'' :) . (++ "'")
|
||||
unsafeString :: String -> Keyword
|
||||
unsafeString = Sequence . ('\'' :) . (++ "'")
|
||||
|
||||
-- | Make SQL integer expression
|
||||
integer :: (Integral a, Show a) => a -> Keyword
|
||||
|
Loading…
Reference in New Issue
Block a user