persistent-2.13.3.5: Type-safe, multi-backend data serialization.
Safe Haskell None
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

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 #

newtype FieldNameDB Source #

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

Since: 2.12.0.0

Instances

Instances details
Eq FieldNameDB Source #
Instance details

Defined in Database.Persist.Names

Ord FieldNameDB Source #
Instance details

Defined in Database.Persist.Names

Read FieldNameDB Source #
Instance details

Defined in Database.Persist.Names

Show FieldNameDB Source #
Instance details

Defined in Database.Persist.Names

DatabaseName FieldNameDB Source #

Since: 2.12.0.0

Instance details

Defined in Database.Persist.Names

Lift FieldNameDB Source #
Instance details

Defined in Database.Persist.Names

newtype FieldNameHS Source #

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

Since: 2.12.0.0

newtype EntityNameHS Source #

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

Since: 2.12.0.0

newtype EntityNameDB Source #

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

Since: 2.12.0.0

Instances

Instances details
Eq EntityNameDB Source #
Instance details

Defined in Database.Persist.Names

Ord EntityNameDB Source #
Instance details

Defined in Database.Persist.Names

Read EntityNameDB Source #
Instance details

Defined in Database.Persist.Names

Show EntityNameDB Source #
Instance details

Defined in Database.Persist.Names

DatabaseName EntityNameDB Source #
Instance details

Defined in Database.Persist.Names

Lift EntityNameDB Source #
Instance details

Defined in Database.Persist.Names

newtype ConstraintNameDB Source #

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

Since: 2.12.0.0

Instances

Instances details
Eq ConstraintNameDB Source #
Instance details

Defined in Database.Persist.Names

Ord ConstraintNameDB Source #
Instance details

Defined in Database.Persist.Names

Read ConstraintNameDB Source #
Instance details

Defined in Database.Persist.Names

Show ConstraintNameDB Source #
Instance details

Defined in Database.Persist.Names

DatabaseName ConstraintNameDB Source #

Since: 2.12.0.0

Instance details

Defined in Database.Persist.Names

Lift ConstraintNameDB Source #
Instance details

Defined in Database.Persist.Names

newtype ConstraintNameHS Source #

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

Since: 2.12.0.0

Instances

Instances details
Eq ConstraintNameHS Source #
Instance details

Defined in Database.Persist.Names

Ord ConstraintNameHS Source #
Instance details

Defined in Database.Persist.Names

Read ConstraintNameHS Source #
Instance details

Defined in Database.Persist.Names

Show ConstraintNameHS Source #
Instance details

Defined in Database.Persist.Names

Lift ConstraintNameHS Source #
Instance details

Defined in Database.Persist.Names