beam-postgres
Safe HaskellNone
LanguageHaskell2010

Database.Beam.Postgres.CustomTypes

Documentation

data PgType a Source #

Instances

Instances details
IsDatabaseEntity Postgres (PgType a) Source # 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

Associated Types

data DatabaseEntityDescriptor Postgres (PgType a) 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

data DatabaseEntityDescriptor Postgres (PgType a) where
type DatabaseEntityDefaultRequirements Postgres (PgType a) 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

type DatabaseEntityDefaultRequirements Postgres (PgType a) = (HasSqlValueSyntax PgValueSyntax a, FromBackendRow Postgres a, IsPgCustomDataType a)
type DatabaseEntityRegularRequirements Postgres (PgType a) 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

type DatabaseEntityRegularRequirements Postgres (PgType a) = (HasSqlValueSyntax PgValueSyntax a, FromBackendRow Postgres a)

Methods

dbEntityName :: Lens' (DatabaseEntityDescriptor Postgres (PgType a)) Text

dbEntitySchema :: Traversal' (DatabaseEntityDescriptor Postgres (PgType a)) (Maybe Text)

dbEntityAuto :: Text -> DatabaseEntityDescriptor Postgres (PgType a)

IsCheckedDatabaseEntity Postgres (PgType a) Source # 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

Associated Types

data CheckedDatabaseEntityDescriptor Postgres (PgType a) 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

data CheckedDatabaseEntityDescriptor Postgres (PgType a) where
type CheckedDatabaseEntityDefaultRequirements Postgres (PgType a) 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

type CheckedDatabaseEntityDefaultRequirements Postgres (PgType a) = DatabaseEntityDefaultRequirements Postgres (PgType a)

Methods

unCheck :: CheckedDatabaseEntityDescriptor Postgres (PgType a) -> DatabaseEntityDescriptor Postgres (PgType a)

unChecked :: Lens' (CheckedDatabaseEntityDescriptor Postgres (PgType a)) (DatabaseEntityDescriptor Postgres (PgType a))

collectEntityChecks :: CheckedDatabaseEntityDescriptor Postgres (PgType a) -> [SomeDatabasePredicate]

checkedDbEntityAuto :: Text -> CheckedDatabaseEntityDescriptor Postgres (PgType a)

RenamableWithRule (FieldRenamer (DatabaseEntityDescriptor Postgres (PgType a))) Source # 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

Methods

renamingFields :: (NonEmpty Text -> Text) -> FieldRenamer (DatabaseEntityDescriptor Postgres (PgType a))

type DatabaseEntityDefaultRequirements Postgres (PgType a) Source # 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

type DatabaseEntityDefaultRequirements Postgres (PgType a) = (HasSqlValueSyntax PgValueSyntax a, FromBackendRow Postgres a, IsPgCustomDataType a)
data DatabaseEntityDescriptor Postgres (PgType a) Source # 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

data DatabaseEntityDescriptor Postgres (PgType a) where
type DatabaseEntityRegularRequirements Postgres (PgType a) Source # 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

type DatabaseEntityRegularRequirements Postgres (PgType a) = (HasSqlValueSyntax PgValueSyntax a, FromBackendRow Postgres a)
type CheckedDatabaseEntityDefaultRequirements Postgres (PgType a) Source # 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

type CheckedDatabaseEntityDefaultRequirements Postgres (PgType a) = DatabaseEntityDefaultRequirements Postgres (PgType a)
data CheckedDatabaseEntityDescriptor Postgres (PgType a) Source # 
Instance details

Defined in Database.Beam.Postgres.CustomTypes

data CheckedDatabaseEntityDescriptor Postgres (PgType a) where

newtype PgTypeCheck Source #

Constructors

PgTypeCheck (Text -> SomeDatabasePredicate) 

data PgHasEnum Source #

Constructors

PgHasEnum Text [Text] 

Instances

Instances details
DatabasePredicate PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Methods

englishDescription :: PgHasEnum -> String

predicateSpecificity :: proxy PgHasEnum -> PredicateSpecificity

serializePredicate :: PgHasEnum -> Value

predicateCascadesDropOn :: DatabasePredicate p' => PgHasEnum -> p' -> Bool

Generic PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Associated Types

type Rep PgHasEnum 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgHasEnum = D1 ('MetaData "PgHasEnum" "Database.Beam.Postgres.Syntax" "beam-postgres-0.5.4.2-inplace" 'False) (C1 ('MetaCons "PgHasEnum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text])))
Show PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Eq PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Hashable PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgHasEnum Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

type Rep PgHasEnum = D1 ('MetaData "PgHasEnum" "Database.Beam.Postgres.Syntax" "beam-postgres-0.5.4.2-inplace" 'False) (C1 ('MetaCons "PgHasEnum" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text])))

class HasSqlValueSyntax expr ty #

Minimal complete definition

sqlValueSyntax

Instances

Instances details
HasSqlValueSyntax Value SqlNull 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: SqlNull -> Value

HasSqlValueSyntax Value ByteString 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: ByteString -> Value

HasSqlValueSyntax Value Int16 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Int16 -> Value

HasSqlValueSyntax Value Int32 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Int32 -> Value

HasSqlValueSyntax Value Int64 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Int64 -> Value

HasSqlValueSyntax Value Word16 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Word16 -> Value

HasSqlValueSyntax Value Word32 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Word32 -> Value

HasSqlValueSyntax Value Word64 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Word64 -> Value

HasSqlValueSyntax Value Text 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Text -> Value

HasSqlValueSyntax Value Day 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Day -> Value

HasSqlValueSyntax Value UTCTime 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: UTCTime -> Value

HasSqlValueSyntax Value LocalTime 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: LocalTime -> Value

HasSqlValueSyntax Value TimeOfDay 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: TimeOfDay -> Value

HasSqlValueSyntax Value Integer 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Integer -> Value

HasSqlValueSyntax Value String 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: String -> Value

HasSqlValueSyntax Value Bool 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Bool -> Value

HasSqlValueSyntax Value Double 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Double -> Value

(TypeError (PreferExplicitSize Int Int32) :: Constraint) => HasSqlValueSyntax Value Int 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Int -> Value

(TypeError (PreferExplicitSize Word Word32) :: Constraint) => HasSqlValueSyntax Value Word 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Word -> Value

HasSqlValueSyntax SqlSyntaxBuilder SqlNull 
Instance details

Defined in Database.Beam.Backend.SQL.Builder

Methods

sqlValueSyntax :: SqlNull -> SqlSyntaxBuilder

HasSqlValueSyntax SqlSyntaxBuilder Int32 
Instance details

Defined in Database.Beam.Backend.SQL.Builder

Methods

sqlValueSyntax :: Int32 -> SqlSyntaxBuilder

HasSqlValueSyntax SqlSyntaxBuilder Text 
Instance details

Defined in Database.Beam.Backend.SQL.Builder

Methods

sqlValueSyntax :: Text -> SqlSyntaxBuilder

HasSqlValueSyntax SqlSyntaxBuilder Bool 
Instance details

Defined in Database.Beam.Backend.SQL.Builder

Methods

sqlValueSyntax :: Bool -> SqlSyntaxBuilder

(TypeError (PreferExplicitSize Int Int32) :: Constraint) => HasSqlValueSyntax SqlSyntaxBuilder Int 
Instance details

Defined in Database.Beam.Backend.SQL.Builder

Methods

sqlValueSyntax :: Int -> SqlSyntaxBuilder

HasSqlValueSyntax HsExpr Int32 
Instance details

Defined in Database.Beam.Haskell.Syntax

Methods

sqlValueSyntax :: Int32 -> HsExpr

HasSqlValueSyntax HsExpr Bool 
Instance details

Defined in Database.Beam.Haskell.Syntax

Methods

sqlValueSyntax :: Bool -> HsExpr

HasSqlValueSyntax PgValueSyntax Value Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax SqlNull Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

Methods

sqlValueSyntax :: SqlNull -> PgValueSyntax

HasSqlValueSyntax PgValueSyntax PgBox Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgLine Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgLineSegment Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgMoney Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgPoint Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax PgRegex Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax ByteString Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax ByteString Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int16 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int32 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int64 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Int8 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word16 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word32 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word64 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Word8 Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Oid Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax HStoreBuilder Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax HStoreList Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax HStoreMap Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Date Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax LocalTimestamp Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax UTCTimestamp Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Scientific Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Text Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Text Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Day Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax NominalDiffTime Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax UTCTime Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax LocalTime Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax TimeOfDay Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax UUID Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Integer Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Bool Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Double Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax Float Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

(TypeError (PreferExplicitSize Int Int32) :: Constraint) => HasSqlValueSyntax PgValueSyntax Int Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

(TypeError (PreferExplicitSize Word Word32) :: Constraint) => HasSqlValueSyntax PgValueSyntax Word Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax Value x => HasSqlValueSyntax Value (Maybe x) 
Instance details

Defined in Database.Beam.Backend.SQL.AST

Methods

sqlValueSyntax :: Maybe x -> Value

ToJSON a => HasSqlValueSyntax PgValueSyntax (PgJSON a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

ToJSON a => HasSqlValueSyntax PgValueSyntax (PgJSONB a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax PgValueSyntax (CI Text) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax (CI Text) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

ToField a => HasSqlValueSyntax PgValueSyntax (Vector a) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax x => HasSqlValueSyntax PgValueSyntax (Maybe x) Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax PgValueSyntax [Char] Source # 
Instance details

Defined in Database.Beam.Postgres.Syntax

HasSqlValueSyntax syntax x => HasSqlValueSyntax syntax (SqlSerial x) 
Instance details

Defined in Database.Beam.Backend.SQL.SQL92

Methods

sqlValueSyntax :: SqlSerial x -> syntax

(HasSqlValueSyntax PgValueSyntax a, PgIsRange n) => HasSqlValueSyntax PgValueSyntax (PgRange n a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

HasSqlValueSyntax vs t => HasSqlValueSyntax vs (Tagged tag t) 
Instance details

Defined in Database.Beam.Backend.SQL.SQL92

Methods

sqlValueSyntax :: Tagged tag t -> vs

class BeamBackend be => FromBackendRow be a #

Instances

Instances details
FromBackendRow Postgres Value Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres SqlNull Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres SqlNull

valuesNeeded :: Proxy Postgres -> Proxy SqlNull -> Int

FromBackendRow Postgres PgBox Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

FromBackendRow Postgres PgMoney Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

FromBackendRow Postgres PgPoint Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

FromBackendRow Postgres TsQuery Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

FromBackendRow Postgres TsVector Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

FromBackendRow Postgres ByteString Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres ByteString Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Int16 Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Int32 Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Int64 Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Word16 Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Word32 Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Word64 Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Oid Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Oid

valuesNeeded :: Proxy Postgres -> Proxy Oid -> Int

FromBackendRow Postgres HStoreList Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres HStoreMap Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Date Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Date

valuesNeeded :: Proxy Postgres -> Proxy Date -> Int

FromBackendRow Postgres LocalTimestamp Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres UTCTimestamp Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres ZonedTimestamp Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Null Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Null

valuesNeeded :: Proxy Postgres -> Proxy Null -> Int

FromBackendRow Postgres Scientific Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Text Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Text

valuesNeeded :: Proxy Postgres -> Proxy Text -> Int

FromBackendRow Postgres Text Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Text

valuesNeeded :: Proxy Postgres -> Proxy Text -> Int

FromBackendRow Postgres Day Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Day

valuesNeeded :: Proxy Postgres -> Proxy Day -> Int

FromBackendRow Postgres UTCTime Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres LocalTime Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres TimeOfDay Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres UUID Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres UUID

valuesNeeded :: Proxy Postgres -> Proxy UUID -> Int

FromBackendRow Postgres Integer Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres Bool Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Bool

valuesNeeded :: Proxy Postgres -> Proxy Bool -> Int

FromBackendRow Postgres Char Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Char

valuesNeeded :: Proxy Postgres -> Proxy Char -> Int

FromBackendRow Postgres Double Source # 
Instance details

Defined in Database.Beam.Postgres.Types

(TypeError (PreferExplicitSize Int Int32) :: Constraint) => FromBackendRow Postgres Int Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Int

valuesNeeded :: Proxy Postgres -> Proxy Int -> Int

(TypeError (PreferExplicitSize Word Word32) :: Constraint) => FromBackendRow Postgres Word Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres Word

valuesNeeded :: Proxy Postgres -> Proxy Word -> Int

BeamBackend be => FromBackendRow be () 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be ()

valuesNeeded :: Proxy be -> Proxy () -> Int

(Typeable a, FromJSON a) => FromBackendRow Postgres (PgJSON a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

Methods

fromBackendRow :: FromBackendRowM Postgres (PgJSON a)

valuesNeeded :: Proxy Postgres -> Proxy (PgJSON a) -> Int

(Typeable a, FromJSON a) => FromBackendRow Postgres (PgJSONB a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

Methods

fromBackendRow :: FromBackendRowM Postgres (PgJSONB a)

valuesNeeded :: Proxy Postgres -> Proxy (PgJSONB a) -> Int

FromBackendRow Postgres (CI Text) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres (CI Text)

valuesNeeded :: Proxy Postgres -> Proxy (CI Text) -> Int

FromBackendRow Postgres (CI Text) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres (CI Text)

valuesNeeded :: Proxy Postgres -> Proxy (CI Text) -> Int

FromBackendRow Postgres (Ratio Integer) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

(FromField a, Typeable a) => FromBackendRow Postgres (PGRange a) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres (PGRange a)

valuesNeeded :: Proxy Postgres -> Proxy (PGRange a) -> Int

FromBackendRow Postgres (Binary ByteString) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

FromBackendRow Postgres (Binary ByteString) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

(FromField a, Typeable a) => FromBackendRow Postgres (PGArray a) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres (PGArray a)

valuesNeeded :: Proxy Postgres -> Proxy (PGArray a) -> Int

(FromField a, Typeable a) => FromBackendRow Postgres (Vector a) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres (Vector a)

valuesNeeded :: Proxy Postgres -> Proxy (Vector a) -> Int

FromBackendRow Postgres [Char] Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres [Char]

valuesNeeded :: Proxy Postgres -> Proxy [Char] -> Int

FromBackendRow be x => FromBackendRow be (SqlSerial x) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (SqlSerial x)

valuesNeeded :: Proxy be -> Proxy (SqlSerial x) -> Int

FromBackendRow be a => FromBackendRow be (Identity a) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (Identity a)

valuesNeeded :: Proxy be -> Proxy (Identity a) -> Int

(FromBackendRow be x, FromBackendRow be SqlNull) => FromBackendRow be (Maybe x) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (Maybe x)

valuesNeeded :: Proxy be -> Proxy (Maybe x) -> Int

(BeamBackend be, Generic (tbl (Nullable Identity)), Generic (tbl (Nullable Exposed)), GFromBackendRow be (Rep (tbl (Nullable Exposed))) (Rep (tbl (Nullable Identity)))) => FromBackendRow be (tbl (Nullable Identity)) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (tbl (Nullable Identity))

valuesNeeded :: Proxy be -> Proxy (tbl (Nullable Identity)) -> Int

(BeamBackend be, Generic (tbl Identity), Generic (tbl Exposed), GFromBackendRow be (Rep (tbl Exposed)) (Rep (tbl Identity))) => FromBackendRow be (tbl Identity) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (tbl Identity)

valuesNeeded :: Proxy be -> Proxy (tbl Identity) -> Int

(FromField a, Typeable a, Typeable n, Ord a) => FromBackendRow Postgres (PgRange n a) Source # 
Instance details

Defined in Database.Beam.Postgres.PgSpecific

Methods

fromBackendRow :: FromBackendRowM Postgres (PgRange n a)

valuesNeeded :: Proxy Postgres -> Proxy (PgRange n a) -> Int

(FromField a, FromField b, Typeable a, Typeable b) => FromBackendRow Postgres (Either a b) Source # 
Instance details

Defined in Database.Beam.Postgres.Types

Methods

fromBackendRow :: FromBackendRowM Postgres (Either a b)

valuesNeeded :: Proxy Postgres -> Proxy (Either a b) -> Int

(BeamBackend be, KnownNat n, FromBackendRow be a) => FromBackendRow be (Vector n a) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (Vector n a)

valuesNeeded :: Proxy be -> Proxy (Vector n a) -> Int

(BeamBackend be, FromBackendRow be a, FromBackendRow be b) => FromBackendRow be (a, b) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b)

valuesNeeded :: Proxy be -> Proxy (a, b) -> Int

(BeamBackend be, FromBackendRow be t) => FromBackendRow be (Tagged tag t) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (Tagged tag t)

valuesNeeded :: Proxy be -> Proxy (Tagged tag t) -> Int

(BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c) => FromBackendRow be (a, b, c) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c)

valuesNeeded :: Proxy be -> Proxy (a, b, c) -> Int

(BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d) => FromBackendRow be (a, b, c, d) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d)

valuesNeeded :: Proxy be -> Proxy (a, b, c, d) -> Int

(BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e) => FromBackendRow be (a, b, c, d, e) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d, e)

valuesNeeded :: Proxy be -> Proxy (a, b, c, d, e) -> Int

(BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f) => FromBackendRow be (a, b, c, d, e, f) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d, e, f)

valuesNeeded :: Proxy be -> Proxy (a, b, c, d, e, f) -> Int

(BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f, FromBackendRow be g) => FromBackendRow be (a, b, c, d, e, f, g) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d, e, f, g)

valuesNeeded :: Proxy be -> Proxy (a, b, c, d, e, f, g) -> Int

(BeamBackend be, FromBackendRow be a, FromBackendRow be b, FromBackendRow be c, FromBackendRow be d, FromBackendRow be e, FromBackendRow be f, FromBackendRow be g, FromBackendRow be h) => FromBackendRow be (a, b, c, d, e, f, g, h) 
Instance details

Defined in Database.Beam.Backend.SQL.Row

Methods

fromBackendRow :: FromBackendRowM be (a, b, c, d, e, f, g, h)

valuesNeeded :: Proxy be -> Proxy (a, b, c, d, e, f, g, h) -> Int

pgParseEnum :: (Enum a, Bounded a) => (a -> String) -> FromBackendRowM Postgres a Source #

createEnum :: forall a (db :: (Type -> Type) -> Type). (HasSqlValueSyntax PgValueSyntax a, Enum a, Bounded a) => Text -> Migration Postgres (CheckedDatabaseEntity Postgres db (PgType a)) Source #

beamTypeForCustomPg :: forall (db :: (Type -> Type) -> Type) a. CheckedDatabaseEntity Postgres db (PgType a) -> DataType Postgres a Source #