hpqtypes-1.5.1.1: Haskell bindings to libpqtypes
Database.PostgreSQL.PQTypes.SQL.Class
Synopsis
data SomeSQL #
Container for SQL-like type storage.
Constructors
class Show sql => IsSQL sql where #
Class representing "SQLness" of a given type.
Minimal complete definition
withSQL
Methods
withSQL :: sql -> ParamAllocator -> (Ptr PGparam -> CString -> IO r) -> IO r #
Convert sql to libpqtypes representation and pass it to supplied continuation (usually for execution).
sql
Instances
withSQL :: SQL -> ParamAllocator -> (Ptr PGparam -> CString -> IO r) -> IO r #
withSQL :: RawSQL row -> ParamAllocator -> (Ptr PGparam -> CString -> IO r) -> IO r #
unsafeSQL :: (IsSQL sql, IsString sql) => String -> sql #
Convert unsafely from String to sql (Note: reckless usage of this function may introduce security vulnerabilities such as proneness to SQL injection attacks).
String