napkin-backend-postgres-redshift-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.PGCommon

Synopsis

Documentation

data Named a #

Constructors

Named 

Fields

Instances

Instances details
Show a => Show (Named a) # 
Instance details

Defined in Napkin.Run.PGCommon

Methods

showsPrec :: Int -> Named a -> ShowS #

show :: Named a -> String #

showList :: [Named a] -> ShowS #

Eq a => Eq (Named a) # 
Instance details

Defined in Napkin.Run.PGCommon

Methods

(==) :: Named a -> Named a -> Bool #

(/=) :: Named a -> Named a -> Bool #

Ord a => Ord (Named a) # 
Instance details

Defined in Napkin.Run.PGCommon

Methods

compare :: Named a -> Named a -> Ordering #

(<) :: Named a -> Named a -> Bool #

(<=) :: Named a -> Named a -> Bool #

(>) :: Named a -> Named a -> Bool #

(>=) :: Named a -> Named a -> Bool #

max :: Named a -> Named a -> Named a #

min :: Named a -> Named a -> Named a #

FromField (Named Value) # 
Instance details

Defined in Napkin.Run.PGCommon

namedMap :: [Named a] -> Map Text a #

class HasPostgresConn a where #

Instances

Instances details
HasPostgresConn Postgres # 
Instance details

Defined in Napkin.Run.Postgres

HasPostgresConn Redshift # 
Instance details

Defined in Napkin.Run.Redshift

query' :: forall r b q m. (MonadNapkin b m, RenderSql q b, HasPostgresConn b, FromRow r) => BackendConn b -> q -> m [r] #

execute :: forall b q m. (MonadNapkin b m, RenderSql q b, HasPostgresConn b) => BackendConn b -> q -> m () #

perform :: forall b q r m. (MonadNapkin b m, RenderSql q b, HasPostgresConn b) => (Connection -> Query -> IO r) -> Text -> BackendConn b -> q -> m r #

checkTableExists :: (MonadNapkin bk m, HasPostgresConn bk) => BackendConn bk -> Ref Table -> m Bool #

Check if tableviewrelation exists. Schema is inferred if Ref contains multiple segments.

data PGSchemaField #

Constructors

PGSchemaField 

Instances

Instances details
Show PGSchemaField # 
Instance details

Defined in Napkin.Run.PGCommon

Eq PGSchemaField # 
Instance details

Defined in Napkin.Run.PGCommon

FromRow PGSchemaField # 
Instance details

Defined in Napkin.Run.PGCommon

refFqTable :: forall {k} (a :: k). Ref a -> (Text, Text) #

tellRowsAffected :: forall {k} (bk :: k) m. MonadNapkin bk m => Proxy bk -> Int64 -> m () #

Orphan instances

FromField Name # 
Instance details

FromRow Name # 
Instance details

FromRow TableKind # 
Instance details

FromRow AnnotationRow # 
Instance details

FromRow (Map Text Value) # 
Instance details