Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data BigQuery = BigQuery
- newtype BQProjectId = BQProjectId {}
- newtype BQDatasetId = BQDatasetId {}
- data BigQueryType
- = BQString
- | BQBytes
- | BQDate
- | BQDateTime
- | BQTime
- | BQInt64
- | BQFloat64
- | BQBool
- | BQTimestamp
- bqTypeString :: (IsString s, Eq s) => Prism' s 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)
- newtype BQTableId = BQTableId {
- unBQTableId :: Text
- 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 Partitioning
- type ColumnName = String
- data WriteDisposition
- data RangeWithStep = RangeWithStep {
- _rangeStart :: Int64
- _rangeEnd :: Int64
- _rangeStep :: Int64
- emptyTableMeta :: TableMeta
- tableMeta :: ColumnName -> [ColumnName] -> TableMeta
- tableMeta_partitioning :: Lens' TableMeta (Maybe Partitioning)
- tableMeta_clustering :: Lens' TableMeta (Maybe [ColumnName])
- tableMeta_writeDisposition :: Lens' TableMeta (Maybe WriteDisposition)
- refComponents :: Ref a -> (Name, Name, Name)
- componentsRef :: (Name, Name, Name) -> Ref a
Documentation
Instances
newtype BQProjectId #
Instances
newtype BQDatasetId #
Instances
data BigQueryType #
Represents the non-recursive bigquery types https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types
Instances
bqTypeString :: (IsString s, Eq s) => Prism' s BigQueryType #
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 # |
Instances
Eq BQTableId # | |
Data BQTableId # | |
Defined in Napkin.Types.BigQuery gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BQTableId -> c BQTableId # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BQTableId # toConstr :: BQTableId -> Constr # dataTypeOf :: BQTableId -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BQTableId) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BQTableId) # gmapT :: (forall b. Data b => b -> b) -> BQTableId -> BQTableId # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BQTableId -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BQTableId -> r # gmapQ :: (forall d. Data d => d -> u) -> BQTableId -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> BQTableId -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> BQTableId -> m BQTableId # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BQTableId -> m BQTableId # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BQTableId -> m BQTableId # | |
Ord BQTableId # | |
Defined in Napkin.Types.BigQuery | |
Show BQTableId # | |
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
data Partitioning #
Instances
type ColumnName = String #
data WriteDisposition #
Instances
data RangeWithStep #
RangeWithStep | |
|
Instances
tableMeta :: ColumnName -> [ColumnName] -> TableMeta #