Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Database.Persist.Names
Description
This module contains types and functions for working with and disambiguating database and Haskell names.
Since: 2.13.0.0
Synopsis
- class DatabaseName a where
- escapeWith :: (Text -> str) -> a -> str
- newtype FieldNameDB = FieldNameDB {}
- newtype FieldNameHS = FieldNameHS {}
- newtype EntityNameHS = EntityNameHS {}
- newtype EntityNameDB = EntityNameDB {}
- newtype ConstraintNameDB = ConstraintNameDB {}
- newtype ConstraintNameHS = ConstraintNameHS {}
Documentation
class DatabaseName a where Source #
Convenience operations for working with '-NameDB' types.
Since: 2.12.0.0
Methods
escapeWith :: (Text -> str) -> a -> str Source #
Instances
DatabaseName ConstraintNameDB Source # | Since: 2.12.0.0 |
Defined in Database.Persist.Names Methods escapeWith :: (Text -> str) -> ConstraintNameDB -> str Source # | |
DatabaseName EntityNameDB Source # | |
Defined in Database.Persist.Names Methods escapeWith :: (Text -> str) -> EntityNameDB -> str Source # | |
DatabaseName FieldNameDB Source # | Since: 2.12.0.0 |
Defined in Database.Persist.Names Methods escapeWith :: (Text -> str) -> FieldNameDB -> str Source # |
newtype FieldNameDB Source #
A FieldNameDB
represents the datastore-side name that persistent
will use for a field.
Since: 2.12.0.0
Constructors
FieldNameDB | |
Fields |
Instances
newtype FieldNameHS Source #
A FieldNameHS
represents the Haskell-side name that persistent
will use for a field.
Since: 2.12.0.0
Constructors
FieldNameHS | |
Fields |
Instances
newtype EntityNameHS Source #
An EntityNameHS
represents the Haskell-side name that persistent
will use for an entity.
Since: 2.12.0.0
Constructors
EntityNameHS | |
Fields |
Instances
Read EntityNameHS Source # | |
Defined in Database.Persist.Names Methods readsPrec :: Int -> ReadS EntityNameHS # readList :: ReadS [EntityNameHS] # | |
Show EntityNameHS Source # | |
Defined in Database.Persist.Names Methods showsPrec :: Int -> EntityNameHS -> ShowS # show :: EntityNameHS -> String # showList :: [EntityNameHS] -> ShowS # | |
Eq EntityNameHS Source # | |
Defined in Database.Persist.Names | |
Ord EntityNameHS Source # | |
Defined in Database.Persist.Names Methods compare :: EntityNameHS -> EntityNameHS -> Ordering # (<) :: EntityNameHS -> EntityNameHS -> Bool # (<=) :: EntityNameHS -> EntityNameHS -> Bool # (>) :: EntityNameHS -> EntityNameHS -> Bool # (>=) :: EntityNameHS -> EntityNameHS -> Bool # max :: EntityNameHS -> EntityNameHS -> EntityNameHS # min :: EntityNameHS -> EntityNameHS -> EntityNameHS # | |
Lift EntityNameHS Source # | |
Defined in Database.Persist.Names Methods lift :: Quote m => EntityNameHS -> m Exp # liftTyped :: forall (m :: Type -> Type). Quote m => EntityNameHS -> Code m EntityNameHS # |
newtype EntityNameDB Source #
An EntityNameDB
represents the datastore-side name that persistent
will use for an entity.
Since: 2.12.0.0
Constructors
EntityNameDB | |
Fields |
Instances
newtype ConstraintNameDB Source #
A ConstraintNameDB
represents the datastore-side name that persistent
will use for a constraint.
Since: 2.12.0.0
Constructors
ConstraintNameDB | |
Fields |
Instances
newtype ConstraintNameHS Source #
An ConstraintNameHS
represents the Haskell-side name that persistent
will use for a constraint.
Since: 2.12.0.0
Constructors
ConstraintNameHS | |
Fields |