napkin-0.5.14
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Parse.SimpleSqlParser.Convert

Description

 
Synopsis

Documentation

parseSQL :: forall ast expr. Data ast => Dialect -> (Dialect -> FilePath -> Text -> Either ParseErrors ast) -> (ast -> Either ParseErrors expr) -> Text -> FilePath -> Either Text expr #

data ParseExc #

Instances

Instances details
Exception 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 #

Show ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

NFData ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

Methods

rnf :: ParseExc -> () #

Eq 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.14-JrXUGmKUOt9J0meJSj0Kh4" 'False) (C1 ('MetaCons "UnimplementedError" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "FeatureNotSupportedError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: 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 #