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 {
- unFieldNameDB :: Text
- newtype FieldNameHS = FieldNameHS {
- unFieldNameHS :: Text
- newtype EntityNameHS = EntityNameHS {
- unEntityNameHS :: Text
- newtype EntityNameDB = EntityNameDB {
- unEntityNameDB :: Text
- newtype ConstraintNameDB = ConstraintNameDB {
- unConstraintNameDB :: Text
- newtype ConstraintNameHS = ConstraintNameHS {
- unConstraintNameHS :: Text
Documentation
class DatabaseName a where #
Convenience operations for working with '-NameDB' types.
Since: 2.12.0.0
Methods
escapeWith :: (Text -> str) -> a -> str #
Instances
DatabaseName ConstraintNameDB # | Since: 2.12.0.0 |
Defined in Database.Persist.Names Methods escapeWith :: (Text -> str) -> ConstraintNameDB -> str # | |
DatabaseName EntityNameDB # | |
Defined in Database.Persist.Names Methods escapeWith :: (Text -> str) -> EntityNameDB -> str # | |
DatabaseName FieldNameDB # | Since: 2.12.0.0 |
Defined in Database.Persist.Names Methods escapeWith :: (Text -> str) -> FieldNameDB -> str # |
newtype FieldNameDB #
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 #
A FieldNameHS
represents the Haskell-side name that persistent
will use for a field.
Since: 2.12.0.0
Constructors
FieldNameHS | |
Fields
|
Instances
Read FieldNameHS # | |
Defined in Database.Persist.Names Methods readsPrec :: Int -> ReadS FieldNameHS readList :: ReadS [FieldNameHS] readPrec :: ReadPrec FieldNameHS readListPrec :: ReadPrec [FieldNameHS] | |
Show FieldNameHS # | |
Defined in Database.Persist.Names Methods showsPrec :: Int -> FieldNameHS -> ShowS show :: FieldNameHS -> String showList :: [FieldNameHS] -> ShowS | |
Eq FieldNameHS # | |
Defined in Database.Persist.Names | |
Ord FieldNameHS # | |
Defined in Database.Persist.Names Methods compare :: FieldNameHS -> FieldNameHS -> Ordering (<) :: FieldNameHS -> FieldNameHS -> Bool (<=) :: FieldNameHS -> FieldNameHS -> Bool (>) :: FieldNameHS -> FieldNameHS -> Bool (>=) :: FieldNameHS -> FieldNameHS -> Bool max :: FieldNameHS -> FieldNameHS -> FieldNameHS min :: FieldNameHS -> FieldNameHS -> FieldNameHS | |
Lift FieldNameHS # | |
Defined in Database.Persist.Names Methods lift :: Quote m => FieldNameHS -> m Exp # liftTyped :: forall (m :: Type -> Type). Quote m => FieldNameHS -> Code m FieldNameHS # |
newtype EntityNameHS #
An EntityNameHS
represents the Haskell-side name that persistent
will use for an entity.
Since: 2.12.0.0
Constructors
EntityNameHS | |
Fields
|
Instances
newtype EntityNameDB #
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 #
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 #
An ConstraintNameHS
represents the Haskell-side name that persistent
will use for a constraint.
Since: 2.12.0.0
Constructors
ConstraintNameHS | |
Fields
|