napkin-spec-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.Effects.CSV.CSVImport.Types

Synopsis

Documentation

data CSVHeader #

Constructors

CSVHeader 
CSVNoHeader 

Instances

Instances details
Show CSVHeader # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Eq CSVHeader # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

newtype Chunks #

Constructors

Chunks Int 

Instances

Instances details
Show Chunks # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Eq Chunks # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Methods

(==) :: Chunks -> Chunks -> Bool #

(/=) :: Chunks -> Chunks -> Bool #

data CSVType #

Instances

Instances details
FromJSON CSVType # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

ToJSON CSVType # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Bounded CSVType # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Enum CSVType # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Generic CSVType # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Associated Types

type Rep CSVType 
Instance details

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))))

Methods

from :: CSVType -> Rep CSVType x #

to :: Rep CSVType x -> CSVType #

Show CSVType # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Eq CSVType # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Methods

(==) :: CSVType -> CSVType -> Bool #

(/=) :: CSVType -> CSVType -> Bool #

type Rep CSVType # 
Instance details

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 #

Constructors

ColumnName Text 

Instances

Instances details
IsString ColumnName # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Show ColumnName # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

Eq ColumnName # 
Instance details

Defined in Napkin.Run.Effects.CSV.CSVImport.Types

createTableQuery :: CsvSchema -> Query #

Generates an empty select query with the specified columns in Schema argument for table creation

class CSVImport (bk :: k) where #

Methods

chunkLimit :: Int #

backend limit on inserts union size

isEnabled :: Bool #

to exclude backends, for example: BigQuery for which this mechanism is not compatible and bq should be used