Safe Haskell | None |
---|---|
Language | GHC2024 |
Synopsis
- data CSVHeader
- newtype Chunks = Chunks Int
- data CSVType
- newtype ColumnName = ColumnName Text
- data ColumnWithType = ColumnWithType {}
- type CsvSchema = NonEmpty ColumnWithType
- newtype CSVError = CSVError Text
- createTableQuery :: CsvSchema -> Query
- class CSVImport (bk :: k) where
- chunkLimit :: Int
- isEnabled :: Bool
Documentation
Instances
FromJSON CSVType # | |||||
Defined in Napkin.Run.Effects.CSV.CSVImport.Types | |||||
ToJSON CSVType # | |||||
Bounded CSVType # | |||||
Enum CSVType # | |||||
Generic CSVType # | |||||
Defined in Napkin.Run.Effects.CSV.CSVImport.Types
| |||||
Show CSVType # | |||||
Eq CSVType # | |||||
type Rep CSVType # | |||||
Defined in Napkin.Run.Effects.CSV.CSVImport.Types type Rep CSVType = D1 ('MetaData "CSVType" "Napkin.Run.Effects.CSV.CSVImport.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) ((C1 ('MetaCons "CSVTyInteger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CSVTyDouble" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CSVTyDate" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CSVTyDateTime" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CSVTyText" 'PrefixI 'False) (U1 :: Type -> Type)))) |
newtype ColumnName #
Instances
IsString ColumnName # | |
Defined in Napkin.Run.Effects.CSV.CSVImport.Types fromString :: String -> ColumnName # | |
Show ColumnName # | |
Defined in Napkin.Run.Effects.CSV.CSVImport.Types showsPrec :: Int -> ColumnName -> ShowS # show :: ColumnName -> String # showList :: [ColumnName] -> ShowS # | |
Eq ColumnName # | |
Defined in Napkin.Run.Effects.CSV.CSVImport.Types (==) :: ColumnName -> ColumnName -> Bool # (/=) :: ColumnName -> ColumnName -> Bool # |
data ColumnWithType #
Instances
FromJSON ColumnWithType # | |
Defined in Napkin.Run.Effects.CSV.CSVImport.Types parseJSON :: Value -> Parser ColumnWithType # parseJSONList :: Value -> Parser [ColumnWithType] # | |
Show ColumnWithType # | |
Defined in Napkin.Run.Effects.CSV.CSVImport.Types showsPrec :: Int -> ColumnWithType -> ShowS # show :: ColumnWithType -> String # showList :: [ColumnWithType] -> ShowS # | |
Eq ColumnWithType # | |
Defined in Napkin.Run.Effects.CSV.CSVImport.Types (==) :: ColumnWithType -> ColumnWithType -> Bool # (/=) :: ColumnWithType -> ColumnWithType -> Bool # |
type CsvSchema = NonEmpty ColumnWithType #
Instances
Exception CSVError # | |
Defined in Napkin.Run.Effects.CSV.CSVImport.Types toException :: CSVError -> SomeException # fromException :: SomeException -> Maybe CSVError # displayException :: CSVError -> String # backtraceDesired :: CSVError -> Bool # | |
Show CSVError # | |
Eq CSVError # | |
createTableQuery :: CsvSchema -> Query #
Generates an empty select query with the specified columns in Schema argument for table creation