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