Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data BigQuery = BigQuery
- data BigQueryType
- = BQString
- | BQBytes
- | BQDate
- | BQDateTime
- | BQTime
- | BQInt64
- | BQFloat64
- | BQBool
- | BQTimestamp
- bqTypeString :: Prism' Text BigQueryType
- data GCSBucket
- gcsBucket :: GCSBucket -> Text
- mkGCSBucket :: Text -> Either GCSBucketNameError GCSBucket
- data GCSBucketNameError
- data GCSKey
- gcsKey :: GCSKey -> Text
- mkGCSKey :: Text -> Either GCSKeyError GCSKey
- data GCSKeyError
- = GCSKTooShort
- | GCSKTooLong
- | GCSKBadChars !(Set Char)
- data GCSACLEntity
- gcsACLEntityText :: Prism' Text GCSACLEntity
- data GCSACLRole
- gcsACLRoleText :: Prism' Text GCSACLRole
- newtype GCUserId = GCUserId {}
- newtype GCUserEmail = GCUserEmail {
- gcUserEmail :: Text
- newtype GCGroupId = GCGroupId {}
- newtype GCGroupEmail = GCGroupEmail {
- gcGroupEmail :: Text
- newtype GCDomain = GCDomain {}
- newtype GCTeam = GCTeam {}
- newtype GCProjectId = GCProjectId {
- gcProjectId :: Text
- data TableMeta = TableMeta {}
- data TablePartitioning
- type Clustering = [ColumnName]
- type ColumnName = Text
- data WriteDisposition
- 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
https://cloud.google.com/storage/docs/naming Between 3 and 63
chars, all lowercase, beginning and ending with alphanum, middle
can contain alphanum or -
,'_', and .
. Avoid .
in the bucket
name as it requires verification. Also, common misspellings of
google and IP addreses are not allowed but the risk of that seemed
low so I omitted those rules.
data GCSBucketNameError #
Omits rules about IP address bucket names or close misspellings of google.
Instances
Eq GCSBucketNameError # | |
Defined in Napkin.Types.BigQuery (==) :: GCSBucketNameError -> GCSBucketNameError -> Bool # (/=) :: GCSBucketNameError -> GCSBucketNameError -> Bool # | |
Show GCSBucketNameError # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> GCSBucketNameError -> ShowS # show :: GCSBucketNameError -> String # showList :: [GCSBucketNameError] -> ShowS # |
https://cloud.google.com/storage/docs/naming No newlines, between 1 and 1024 chars
data GCSKeyError #
Instances
Eq GCSKeyError # | |
Defined in Napkin.Types.BigQuery (==) :: GCSKeyError -> GCSKeyError -> Bool # (/=) :: GCSKeyError -> GCSKeyError -> Bool # | |
Show GCSKeyError # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> GCSKeyError -> ShowS # show :: GCSKeyError -> String # showList :: [GCSKeyError] -> ShowS # |
data GCSACLEntity #
An entity which holds an ACL for an object or bucket in google cloud storage. I believe this means that whoever the entity targets can only hold one ACL, so you use this to do targeted/idempotent insertsreplacements of permissions on objectsbuckets.
ACLEUserId !GCUserId | |
ACLEUserEmail !GCUserEmail | |
ACLEGroupId !GCGroupId | |
ACLEGroupEmail !GCGroupEmail | |
ACLEDomain !GCDomain | |
ACLEProject !GCTeam !GCProjectId | |
ACLEAllUsers | |
ACLEAllAuthenticatedUsers |
Instances
Eq GCSACLEntity # | |
Defined in Napkin.Types.BigQuery (==) :: GCSACLEntity -> GCSACLEntity -> Bool # (/=) :: GCSACLEntity -> GCSACLEntity -> Bool # | |
Ord GCSACLEntity # | |
Defined in Napkin.Types.BigQuery compare :: GCSACLEntity -> GCSACLEntity -> Ordering # (<) :: GCSACLEntity -> GCSACLEntity -> Bool # (<=) :: GCSACLEntity -> GCSACLEntity -> Bool # (>) :: GCSACLEntity -> GCSACLEntity -> Bool # (>=) :: GCSACLEntity -> GCSACLEntity -> Bool # max :: GCSACLEntity -> GCSACLEntity -> GCSACLEntity # min :: GCSACLEntity -> GCSACLEntity -> GCSACLEntity # | |
Show GCSACLEntity # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> GCSACLEntity -> ShowS # show :: GCSACLEntity -> String # showList :: [GCSACLEntity] -> ShowS # |
data GCSACLRole #
Instances
Eq GCSACLRole # | |
Defined in Napkin.Types.BigQuery (==) :: GCSACLRole -> GCSACLRole -> Bool # (/=) :: GCSACLRole -> GCSACLRole -> Bool # | |
Ord GCSACLRole # | |
Defined in Napkin.Types.BigQuery compare :: GCSACLRole -> GCSACLRole -> Ordering # (<) :: GCSACLRole -> GCSACLRole -> Bool # (<=) :: GCSACLRole -> GCSACLRole -> Bool # (>) :: GCSACLRole -> GCSACLRole -> Bool # (>=) :: GCSACLRole -> GCSACLRole -> Bool # max :: GCSACLRole -> GCSACLRole -> GCSACLRole # min :: GCSACLRole -> GCSACLRole -> GCSACLRole # | |
Show GCSACLRole # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> GCSACLRole -> ShowS # show :: GCSACLRole -> String # showList :: [GCSACLRole] -> ShowS # |
newtype GCUserEmail #
Instances
Eq GCUserEmail # | |
Defined in Napkin.Types.BigQuery (==) :: GCUserEmail -> GCUserEmail -> Bool # (/=) :: GCUserEmail -> GCUserEmail -> Bool # | |
Ord GCUserEmail # | |
Defined in Napkin.Types.BigQuery compare :: GCUserEmail -> GCUserEmail -> Ordering # (<) :: GCUserEmail -> GCUserEmail -> Bool # (<=) :: GCUserEmail -> GCUserEmail -> Bool # (>) :: GCUserEmail -> GCUserEmail -> Bool # (>=) :: GCUserEmail -> GCUserEmail -> Bool # max :: GCUserEmail -> GCUserEmail -> GCUserEmail # min :: GCUserEmail -> GCUserEmail -> GCUserEmail # | |
Show GCUserEmail # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> GCUserEmail -> ShowS # show :: GCUserEmail -> String # showList :: [GCUserEmail] -> ShowS # |
newtype GCGroupEmail #
Instances
Eq GCGroupEmail # | |
Defined in Napkin.Types.BigQuery (==) :: GCGroupEmail -> GCGroupEmail -> Bool # (/=) :: GCGroupEmail -> GCGroupEmail -> Bool # | |
Ord GCGroupEmail # | |
Defined in Napkin.Types.BigQuery compare :: GCGroupEmail -> GCGroupEmail -> Ordering # (<) :: GCGroupEmail -> GCGroupEmail -> Bool # (<=) :: GCGroupEmail -> GCGroupEmail -> Bool # (>) :: GCGroupEmail -> GCGroupEmail -> Bool # (>=) :: GCGroupEmail -> GCGroupEmail -> Bool # max :: GCGroupEmail -> GCGroupEmail -> GCGroupEmail # min :: GCGroupEmail -> GCGroupEmail -> GCGroupEmail # | |
Show GCGroupEmail # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> GCGroupEmail -> ShowS # show :: GCGroupEmail -> String # showList :: [GCGroupEmail] -> ShowS # |
newtype GCProjectId #
Instances
Eq GCProjectId # | |
Defined in Napkin.Types.BigQuery (==) :: GCProjectId -> GCProjectId -> Bool # (/=) :: GCProjectId -> GCProjectId -> Bool # | |
Ord GCProjectId # | |
Defined in Napkin.Types.BigQuery compare :: GCProjectId -> GCProjectId -> Ordering # (<) :: GCProjectId -> GCProjectId -> Bool # (<=) :: GCProjectId -> GCProjectId -> Bool # (>) :: GCProjectId -> GCProjectId -> Bool # (>=) :: GCProjectId -> GCProjectId -> Bool # max :: GCProjectId -> GCProjectId -> GCProjectId # min :: GCProjectId -> GCProjectId -> GCProjectId # | |
Show GCProjectId # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> GCProjectId -> ShowS # show :: GCProjectId -> String # showList :: [GCProjectId] -> ShowS # |
Instances
Eq TableMeta # | |
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 # | |
Show TableMeta # | |
Generic TableMeta # | |
Default TableMeta # | |
Defined in Napkin.Types.BigQuery | |
RenderSql (CreateTableAs 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 (CreateTableAs TableMeta) () BigQuery # | |
Defined in Napkin.Run.BigQuery execCommand :: (Katip m, MonadQueryStats m) => BackendConn BigQuery -> CreateTableAs TableMeta -> m () # | |
type Rep TableMeta # | |
Defined in Napkin.Types.BigQuery type Rep TableMeta = D1 ('MetaData "TableMeta" "Napkin.Types.BigQuery" "napkin-0.5.13-8705pBGlgyp7AIaYGNE2fM" '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 TablePartitioning #
Instances
type Clustering = [ColumnName] #
type ColumnName = Text #
data WriteDisposition #
Instances
data MaterializedViewMeta #
Instances
data RangeWithStep #
RangeWithStep | |
|
Instances
data MaterializedViewRefresh #
Instances
Eq MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery | |
Show MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery showsPrec :: Int -> MaterializedViewRefresh -> ShowS # show :: MaterializedViewRefresh -> String # showList :: [MaterializedViewRefresh] -> ShowS # | |
Generic MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery type Rep MaterializedViewRefresh :: Type -> Type # | |
ToJSON MaterializedViewRefresh # | |
Defined in Napkin.Types.BigQuery | |
FromJSON 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.13-8705pBGlgyp7AIaYGNE2fM" '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 #