@hackage hssqlppp0.0.6

Sql parser and type checker

Sql parser, pretty printer and type checker, targets PostGreSQL SQL and PL/pgSQL, uses Parsec and UUAGC. Overview: see the module Database.HsSqlPpp.TypeChecking.Ast for the ast types; Parser for converting text to asts; PrettyPrinter for converting asts to text; TypeChecker for annotating asts (this does the type checking), and working with annotated trees; Scope to read a catalog from a database to type check against, or to generate catalog information; DatabaseLoader for the beginnings of a routine to load SQL into a database (e.g. to generate an ast then load it into a database without loading it via psql). The loader just about does the job but error handling is a bit crap at the moment. Comes with a HUnit test suite which you can run using the HsSqlPppTests executable, and command line access to some functions via a exe called HsSqlSystem. See the project page https://launchpad.net/hssqlppp for more information and documentation links.