Copyright | (c) digitally induced GmbH 2020 |
---|---|
Safe Haskell | Safe-Inferred |
Synopsis
- parseSchemaSql :: IO (Either ByteString [Statement])
- parseSqlFile :: FilePath -> IO (Either ByteString [Statement])
- schemaFilePath :: FilePath
- parseDDL :: Parser [Statement]
- expression :: Parser Expression
- sqlType :: Parser PostgresType
- removeTypeCasts :: Expression -> Expression
- parseIndexColumns :: ParsecT Void Text Identity [IndexColumn]
Documentation
parseSchemaSql :: IO (Either ByteString [Statement]) Source #
parseSqlFile :: FilePath -> IO (Either ByteString [Statement]) Source #
expression :: Parser Expression Source #
Parses a SQL expression
This parser makes use of makeExprParser as described in https://hackage.haskell.org/package/parser-combinators-1.2.0/docs/Control-Monad-Combinators-Expr.html
sqlType :: Parser PostgresType Source #
removeTypeCasts :: Expression -> Expression Source #
Turns sql like '1::double precision' into just '1'
parseIndexColumns :: ParsecT Void Text Identity [IndexColumn] Source #