napkin-spec-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Revert.Conversion

Documentation

convertQuery :: forall {k} (b :: k). BackendDialect b => Query -> QueryExpr #

convertSExp :: forall {k} (b :: k). BackendDialect b => SExp -> ScalarExpr #

convertAliasSExp :: forall {k} (b :: k). BackendDialect b => Alias SExp -> (ScalarExpr, Maybe Name) #

convertAliasRef :: forall {k1} {k2} (b :: k1) (a :: k2). BackendDialect b => Alias (Ref a) -> ([Name], Maybe Name) #

convertCte :: forall {k} (b :: k). BackendDialect b => WithClauses -> QueryExpr -> QueryExpr #

convertFrame :: forall {k} (b :: k). BackendDialect b => WindowFrame -> Frame #

convertSortSpec :: forall {k} (b :: k). BackendDialect b => OrderPart -> SortSpec #

convertRefToNames :: forall {k} (a :: k). Ref a -> [Name] #

refToSingleName :: forall {k} (a :: k). Ref a -> Name #

convertFrom :: forall {k} (b :: k). BackendDialect b => From -> [TableRef] #

convertRelation :: forall {k1} {k2} (b :: k1) (a :: k2). BackendDialect b => Ref a -> Relation -> TableRef #

convertUpdateTable :: forall {k} (b :: k). BackendDialect b => UpdateQuery -> Statement #

convertDeleteRows :: forall {k} (b :: k). BackendDialect b => DeleteRows -> Statement #