{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE UndecidableInstances #-}
module Hasura.Backends.Postgres.Types.Insert
( BackendInsert (..),
)
where
import Data.Kind (Type)
import Hasura.Prelude
import Hasura.RQL.IR.Conflict (OnConflictClause)
import Hasura.RQL.Types.Backend (Backend)
import Hasura.SQL.Backend
type BackendInsert :: PostgresKind -> Type -> Type
newtype BackendInsert pgKind v = BackendInsert
{ BackendInsert pgKind v
-> Maybe (OnConflictClause ('Postgres pgKind) v)
_biConflictClause :: Maybe (OnConflictClause ('Postgres pgKind) v)
}
deriving instance (Backend ('Postgres pgKind)) => Functor (BackendInsert pgKind)
deriving instance (Backend ('Postgres pgKind)) => Foldable (BackendInsert pgKind)
deriving instance (Backend ('Postgres pgKind)) => Traversable (BackendInsert pgKind)