Skip to content

teh/pgparsecheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A compile-time checker for PostgreSQL syntax

(Based on https://github.com/sfackler/rust-postgres-macros)

This module implements a quasiquoter that links against the postgres query parser.

If the query parses OK the quoter returns the query unmodified. A syntactically invalid query will not compile.

Note that this only check syntax, not semantics.

Example

print ([psql|
    select a, b, c
    from hello, hello2
    where hello.a = hello.b
|])

Building

make
cabal build

About

A compile-time postgres syntax checker based on https://github.com/sfackler/rust-postgres-macros

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published