persistent-2.14.6.3: Type-safe, multi-backend data serialization.
Safe HaskellNone
LanguageHaskell2010

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

Documentation

class DatabaseName a where #

Convenience operations for working with '-NameDB' types.

Since: 2.12.0.0

Methods

escapeWith :: (Text -> str) -> a -> str #

Instances

Instances details
DatabaseName ConstraintNameDB #

Since: 2.12.0.0

Instance details

Defined in Database.Persist.Names

Methods

escapeWith :: (Text -> str) -> ConstraintNameDB -> str #

DatabaseName EntityNameDB # 
Instance details

Defined in Database.Persist.Names

Methods

escapeWith :: (Text -> str) -> EntityNameDB -> str #

DatabaseName FieldNameDB #

Since: 2.12.0.0

Instance details

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

newtype FieldNameHS #

A FieldNameHS represents the Haskell-side name that persistent will use for a field.

Since: 2.12.0.0

Constructors

FieldNameHS 

Fields

newtype EntityNameHS #

An EntityNameHS represents the Haskell-side name that persistent will use for an entity.

Since: 2.12.0.0

Constructors

EntityNameHS 

Fields

newtype EntityNameDB #

An EntityNameDB represents the datastore-side name that persistent will use for an entity.

Since: 2.12.0.0

Constructors

EntityNameDB 

Fields

newtype ConstraintNameDB #

A ConstraintNameDB represents the datastore-side name that persistent will use for a constraint.

Since: 2.12.0.0

Constructors

ConstraintNameDB 

Instances

Instances details
Read ConstraintNameDB # 
Instance details

Defined in Database.Persist.Names

Show ConstraintNameDB # 
Instance details

Defined in Database.Persist.Names

Eq ConstraintNameDB # 
Instance details

Defined in Database.Persist.Names

Ord ConstraintNameDB # 
Instance details

Defined in Database.Persist.Names

DatabaseName ConstraintNameDB #

Since: 2.12.0.0

Instance details

Defined in Database.Persist.Names

Methods

escapeWith :: (Text -> str) -> ConstraintNameDB -> str #

Lift ConstraintNameDB # 
Instance details

Defined in Database.Persist.Names

Methods

lift :: Quote m => ConstraintNameDB -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => ConstraintNameDB -> Code m ConstraintNameDB #

newtype ConstraintNameHS #

An ConstraintNameHS represents the Haskell-side name that persistent will use for a constraint.

Since: 2.12.0.0

Constructors

ConstraintNameHS