Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data BigQuery = BigQuery
- data BigQueryType
- = BQString
- | BQBytes
- | BQDate
- | BQDateTime
- | BQTime
- | BQInt64
- | BQFloat64
- | BQBool
- | BQTimestamp
- bqTypeString :: Prism' Text BigQueryType
- data TableMeta = TableMeta {}
- data PartitionInterval
- data TablePartitioning
- data TimePartitioning = TimePartitioning {}
- type Clustering = [ColumnName]
- type ColumnName = Text
- data WriteDisposition
- newtype ViewMeta = ViewMeta {}
- data MaterializedViewMeta = MaterializedViewMeta {}
- data RangeWithStep = RangeWithStep {
- _rangeStart :: Int64
- _rangeEnd :: Int64
- _rangeStep :: Int64
- data MaterializedViewRefresh
- = Refresh_Automatic { }
- | Refresh_Manual
- emptyTableMeta :: TableMeta
- tableMeta :: ColumnName -> Clustering -> TableMeta
- tableMeta_partitioning :: Lens' TableMeta (Maybe TablePartitioning)
- tableMeta_clustering :: Lens' TableMeta (Maybe Clustering)
- tableMeta_writeDisposition :: Lens' TableMeta (Maybe WriteDisposition)
- refComponents :: Ref a -> (Name, Name, Name)
- componentsRef :: (Name, Name, Name) -> Ref a
Documentation
Instances
data BigQueryType #
Represents the non-recursive bigquery types https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types
Instances
Instances
Data TableMeta # | |
Defined in Napkin.Types.BigQuery gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableMeta -> c TableMeta # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableMeta # toConstr :: TableMeta -> Constr # dataTypeOf :: TableMeta -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableMeta) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableMeta) # gmapT :: (forall b. Data b => b -> b) -> TableMeta -> TableMeta # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableMeta -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableMeta -> r # gmapQ :: (forall d. Data d => d -> u) -> TableMeta -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> TableMeta -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableMeta -> m TableMeta # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableMeta -> m TableMeta # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableMeta -> m TableMeta # | |
Generic TableMeta # | |
Show TableMeta # | |
Default TableMeta # | |
Defined in Napkin.Types.BigQuery | |
Eq TableMeta # | |
RenderSql (CreateTable TableMeta) BigQuery # | Used for dump command only; BigQuery can create stuff via SQL, but for tables we are using API now |
Defined in Napkin.Render.BigQuery | |
Command (CreateTable TableMeta) () BigQuery # | |
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> CreateTable TableMeta -> m () # | |
type Rep TableMeta # | |
Defined in Napkin.Types.BigQuery type Rep TableMeta = D1 ('MetaData "TableMeta" "Napkin.Types.BigQuery" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'False) (C1 ('MetaCons "TableMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tableMeta_partitioning") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TablePartitioning)) :*: (S1 ('MetaSel ('Just "_tableMeta_clustering") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Clustering)) :*: S1 ('MetaSel ('Just "_tableMeta_writeDisposition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WriteDisposition))))) |
data PartitionInterval #
Instances
data TablePartitioning #
Instances
data TimePartitioning #
Instances
type Clustering = [ColumnName] #
type ColumnName = Text #
data WriteDisposition #
Instances
Instances
FromJSON ViewMeta # | |
Data ViewMeta # | |
Defined in Napkin.Types.BigQuery gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ViewMeta -> c ViewMeta # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ViewMeta # toConstr :: ViewMeta -> Constr # dataTypeOf :: ViewMeta -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ViewMeta) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ViewMeta) # gmapT :: (forall b. Data b => b -> b) -> ViewMeta -> ViewMeta # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ViewMeta -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ViewMeta -> r # gmapQ :: (forall d. Data d => d -> u) -> ViewMeta -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ViewMeta -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ViewMeta -> m ViewMeta # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ViewMeta -> m ViewMeta # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ViewMeta -> m ViewMeta # | |
Generic ViewMeta # | |
Show ViewMeta # | |
Default ViewMeta # | |
Defined in Napkin.Types.BigQuery | |
Eq ViewMeta # | |
RenderSql (CreateView ViewMeta) BigQuery # | |
Defined in Napkin.Render.BigQuery | |
Command (CreateView ViewMeta) () BigQuery # | |
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> CreateView ViewMeta -> m () # | |
type Rep ViewMeta # | |
Defined in Napkin.Types.BigQuery |
data MaterializedViewMeta #
Instances
data RangeWithStep #
RangeWithStep | |
|
Instances
data MaterializedViewRefresh #
Instances
FromJSON MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery | |
Generic MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery type Rep MaterializedViewRefresh :: Type -> Type # | |
Show MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> MaterializedViewRefresh -> ShowS # show :: MaterializedViewRefresh -> String # showList :: [MaterializedViewRefresh] -> ShowS # | |
Eq MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery | |
type Rep MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery type Rep MaterializedViewRefresh = D1 ('MetaData "MaterializedViewRefresh" "Napkin.Types.BigQuery" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'False) (C1 ('MetaCons "Refresh_Automatic" 'PrefixI 'True) (S1 ('MetaSel ('Just "_refresh_minutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64)) :+: C1 ('MetaCons "Refresh_Manual" 'PrefixI 'False) (U1 :: Type -> Type)) |
tableMeta :: ColumnName -> Clustering -> TableMeta #