napkin-runtime-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.Effects.CSV.CSVImport

Documentation

type CSVContext (m :: Type -> Type) bk = (CSVImport bk, MonadNapkin bk m, MonadThrow m, Backend bk) #

loadCSV :: forall bk m. (CSVContext m bk, RenderSql InsertInto bk) => CSVSettings -> BackendConn bk -> Ref Table -> SpecPaths -> FilePath -> CSVHeader -> Chunks -> CsvSchema -> m () #

loadDb :: forall bk (m :: Type -> Type). (CSVContext m bk, RenderSql InsertInto bk) => BackendConn bk -> Ref Table -> CSVHeader -> Chunks -> CsvSchema -> ConduitT [Text] Void (ResourceT m) () #

parseResult :: [(b, String)] -> Either Text b #