napkin-0.5.13
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Napkin.Parse.SimpleSqlParser.Convert

Description

 
Synopsis

Documentation

parseSQL :: Dialect -> (Dialect -> FilePath -> Maybe (Int, Int) -> String -> Either ParseErrors ast) -> (ast -> Either ParseErrors expr) -> Text -> FilePath -> Either Text expr #

data ParseExc #

Instances

Instances details
Eq ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

Show ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

Generic ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

Associated Types

type Rep ParseExc :: Type -> Type #

Methods

from :: ParseExc -> Rep ParseExc x #

to :: Rep ParseExc x -> ParseExc #

NFData ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

Methods

rnf :: ParseExc -> () #

Exception ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

type Rep ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

type Rep ParseExc = D1 ('MetaData "ParseExc" "Napkin.Parse.SimpleSqlParser.Convert" "napkin-0.5.13-8705pBGlgyp7AIaYGNE2fM" 'False) (C1 ('MetaCons "UnimplementedError" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FeatureNotSupportedError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: C1 ('MetaCons "SyntaxError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))))

parsedAsQuery :: FilePath -> Statement -> Either ParseErrors Query #

Convert a SimpleSQL QueryExpr into a Napkin Query.

scalarExprAsSExp :: ScalarExpr -> Either ParseErrors SExp #

Convert an SQL ScalarExpr to napkin's SExp

namesToRef :: [Name] -> Ref a #