Safe Haskell | None |
---|---|
Language | GHC2021 |
Documentation
data SqlParseError #
Instances
Show SqlParseError # | |
Defined in Napkin.Run.Effects.Languages.SqlParse showsPrec :: Int -> SqlParseError -> ShowS # show :: SqlParseError -> String # showList :: [SqlParseError] -> ShowS # | |
Eq SqlParseError # | |
Defined in Napkin.Run.Effects.Languages.SqlParse (==) :: SqlParseError -> SqlParseError -> Bool # (/=) :: SqlParseError -> SqlParseError -> Bool # |
data SqlParse (m :: k) a where #
ParseSqlQuery' :: forall {k} (m :: k). SourceLocation -> Text -> SqlParse m (Either SqlParseError Query) | |
ParseSqlExp' :: forall {k} (m :: k). SourceLocation -> Text -> SqlParse m (Either SqlParseError SExp) | |
ParseSqlStatement' :: forall {k} (m :: k). SourceLocation -> Text -> SqlParse m (Either SqlParseError Statement) | |
ParseSqlStatements' :: forall {k} (m :: k). SourceLocation -> Text -> SqlParse m (Either SqlParseError [Statement]) |
Instances
GShow (SqlParse a :: Type -> Type) # | |
Defined in Napkin.Run.Effects.Languages.SqlParse gshowsPrec :: Int -> SqlParse a a0 -> ShowS # | |
CacheableEffect (SqlParse :: k -> Type -> Type) SqlParseCacheKey # | |
Defined in Napkin.Run.Effects.Languages.SqlParse | |
Show (SqlParse m a) # | |
Eq (SqlParse m a) # | |
Ord (SqlParse m a) # | |
Defined in Napkin.Run.Effects.Languages.SqlParse |
parseSqlQuery' :: forall (r :: EffectRow). Member (SqlParse :: (Type -> Type) -> Type -> Type) r => SourceLocation -> Text -> Sem r (Either SqlParseError Query) #
parseSqlExp' :: forall (r :: EffectRow). Member (SqlParse :: (Type -> Type) -> Type -> Type) r => SourceLocation -> Text -> Sem r (Either SqlParseError SExp) #
parseSqlStatement' :: forall (r :: EffectRow). Member (SqlParse :: (Type -> Type) -> Type -> Type) r => SourceLocation -> Text -> Sem r (Either SqlParseError Statement) #
parseSqlStatements' :: forall (r :: EffectRow). Member (SqlParse :: (Type -> Type) -> Type -> Type) r => SourceLocation -> Text -> Sem r (Either SqlParseError [Statement]) #
parseSqlQuery :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => SourceLocation -> Text -> Sem r Query #
parseSqlExp :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => SourceLocation -> Text -> Sem r SExp #
toStatement :: a -> Statement #
fromStatement :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => Statement -> Sem r a #
refTableLens :: Lens' a (Ref Table) #
Instances
Stateable CreateTableDDL # | |
Defined in Napkin.Run.Effects.Languages.StatementParse toStatement :: CreateTableDDL -> Statement # fromStatement :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => Statement -> Sem r CreateTableDDL # refTableLens :: Lens' CreateTableDDL (Ref Table) # | |
Stateable InsertStatement # | |
Defined in Napkin.Run.Effects.Languages.StatementParse toStatement :: InsertStatement -> Statement # fromStatement :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => Statement -> Sem r InsertStatement # |
parseStatement :: forall (r :: EffectRow) a. (Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r, Stateable a) => SourceLocation -> Text -> Sem r a #
parseStatements :: forall (r :: EffectRow) a. (Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r, Stateable a) => SourceLocation -> Text -> Sem r [a] #
overrideDialect :: forall (r :: EffectRow) a. Member (Reader SQLDialect) r => SQLDialect -> Sem r a -> Sem r a #
data SqlParseCacheKey #
Instances
CacheableEffect (SqlParse :: k -> Type -> Type) SqlParseCacheKey # | |
Defined in Napkin.Run.Effects.Languages.SqlParse |