DSH-0.8.2.2: Database Supported Haskell

Safe HaskellNone

Database.DSH.Compiler

Description

DSH compiler module exposes the function fromQ that can be used to execute DSH programs on a database. It transform the DSH program into FerryCore which is then translated into SQL (through a table algebra). The SQL code is executed on the database and then processed to form a Haskell value.

Synopsis

Documentation

fromQ :: (QA a, IConnection conn) => conn -> Q a -> IO aSource

Execute the query on the database

debugPlan :: (IConnection conn, Reify a) => conn -> Exp a -> IO StringSource

Convert the query into unoptimised algebraic plan

debugCore :: (IConnection conn, Reify a) => conn -> Exp a -> IO StringSource

debugPlanOpt :: (IConnection conn, Reify a) => conn -> Exp a -> IO StringSource

Convert the query into optimised algebraic plan

debugSQL :: (IConnection conn, Reify a) => conn -> Exp a -> IO StringSource

Convert the query into SQL

debugCoreDot :: (IConnection conn, Reify a) => conn -> Exp a -> IO StringSource