napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Parse.SimpleSqlParser.Convert

Synopsis

Documentation

parseSQL :: 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 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

type Rep ParseExc = D1 ('MetaData "ParseExc" "Napkin.Parse.SimpleSqlParser.Convert" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" '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))))

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-1.0.0-5YkWAC9Wc776PT0LDghaFb" '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 :: forall {k} (a :: k). [Name] -> Ref a #

nameToRef :: forall {k} (a :: k). Name -> Ref a #