Safe Haskell | None |
---|---|
Language | GHC2024 |
Documentation
type CSVContext (m :: Type -> Type) bk = (CSVImport bk, MonadNapkin bk m, MonadThrow m, Backend bk) #
readAndCheckHeader :: forall (m :: Type -> Type) b. (Monad m, MonadThrow m) => CSVHeader -> CsvSchema -> ConduitT (Row Text) b (ResourceT m) (Maybe [Maybe ColumnWithType]) #
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) () #
insertTableQueries :: (CSVContext m bk, RenderSql InsertInto bk) => BackendConn bk -> Ref Table -> Maybe [Maybe ColumnWithType] -> CsvSchema -> [[Text]] -> m () #
match :: Maybe [Maybe ColumnWithType] -> CsvSchema -> [Text] -> Either Text [(ColumnWithType, Text)] #
insertTableQuery :: [(ColumnWithType, Text)] -> Either Text Query #
parseResult :: [(b, String)] -> Either Text b #