-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | A small collection of helper functions to generate postgresql queries
--   
--   Please see README.md
@package psql-helpers
@version 0.1.0.0

module Database.PostgreSQL.Helpers
newtype TableName
TableName :: Query -> TableName
[unTableName] :: TableName -> Query
newtype FieldName
FieldName :: Query -> FieldName
[unFieldName] :: FieldName -> Query
(@=) :: ToField a => FieldName -> a -> (FieldName, Action)

-- | Build and run an insert query
insert :: Connection -> TableName -> [(FieldName, Action)] -> IO ()
instance Data.String.IsString Database.PostgreSQL.Helpers.FieldName
instance GHC.Classes.Eq Database.PostgreSQL.Helpers.FieldName
instance GHC.Show.Show Database.PostgreSQL.Helpers.FieldName
instance Data.String.IsString Database.PostgreSQL.Helpers.TableName
instance GHC.Classes.Eq Database.PostgreSQL.Helpers.TableName
instance GHC.Show.Show Database.PostgreSQL.Helpers.TableName
