napkin-spec-2.0.0
Safe HaskellNone
LanguageGHC2024

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
NFData ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

Methods

rnf :: ParseExc -> () #

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-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (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 Text)))

Methods

from :: ParseExc -> Rep ParseExc x #

to :: Rep ParseExc x -> ParseExc #

Show ParseExc # 
Instance details

Defined in Napkin.Parse.SimpleSqlParser.Convert

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-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (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 Text)))

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 #