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

Napkin.Parse.Base

Description

 
Synopsis

Documentation

data ParseExc #

Instances

Instances details
Eq ParseExc # 
Instance details

Defined in Napkin.Parse.Base

Show ParseExc # 
Instance details

Defined in Napkin.Parse.Base

Generic ParseExc # 
Instance details

Defined in Napkin.Parse.Base

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.Base

Methods

rnf :: ParseExc -> () #

Exception ParseExc # 
Instance details

Defined in Napkin.Parse.Base

type Rep ParseExc # 
Instance details

Defined in Napkin.Parse.Base

type Rep ParseExc = D1 ('MetaData "ParseExc" "Napkin.Parse.Base" "napkin-0.5.10-C0Hygrce3goLKcQ6g1wIUX" '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))))

class ParseSQL backend where #

type ParseSQLFun backend a = backend -> String -> FilePath -> Either ParseErrors a #

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 #