| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Frames.SQL.Beam.Postgres.BeamSchemaGen
Description
Functions that help generate Beam schema at compile time.
Synopsis
- genBeamSchema :: ByteString -> Q [Dec]
 - genBeamSchemaForTests :: ByteString -> Q [Dec]
 - getCode :: ByteString -> IO String
 
Documentation
genBeamSchema :: ByteString -> Q [Dec] Source #
Takes code generated by getCode and puts it in a file named
 "NewBeamSchema.hs" in the src directory (relative to your project's root)
  at compile time.
genBeamSchemaForTests :: ByteString -> Q [Dec] Source #
Takes code generated by getCode and puts it in a file named
 "NewBeamSchema.hs" in the test directory (relative to your project's root)
  at compile time. Used internally in the test suite.