| Copyright | (c) Soostone Inc 2020 |
|---|---|
| License | AllRightsReserved |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Napkin.Types.BigQuery
Description
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
Constructors
| BigQuery |
Instances
newtype BQProjectId #
Constructors
| BQProjectId | |
Fields | |
Instances
newtype BQDatasetId #
Constructors
| BQDatasetId | |
Fields | |
Instances
data BigQueryType #
Represents the non-recursive bigquery types https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types
Constructors
| BQString | |
| BQBytes | |
| BQDate | |
| BQDateTime | |
| BQTime | |
| BQInt64 | |
| BQFloat64 | |
| BQBool | |
| BQTimestamp |
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.
Instances
| Eq GCSBucket # | |
| Ord GCSBucket # | |
| Show GCSBucket # | |
data GCSBucketNameError #
Omits rules about IP address bucket names or close misspellings of google.
Constructors
| GCSBBadChars !(Set Char) | |
| GCSBInvalidStart !Char | |
| GCSBInvalidEnd !Char | |
| GCSBTooShort | |
| GCSBTooLong |
Instances
| Eq GCSBucketNameError # | |
Defined in Napkin.Types.BigQuery Methods (==) :: GCSBucketNameError -> GCSBucketNameError -> Bool # (/=) :: GCSBucketNameError -> GCSBucketNameError -> Bool # | |
| Show GCSBucketNameError # | |
Defined in Napkin.Types.BigQuery Methods 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 #
Constructors
| GCSKTooShort | |
| GCSKTooLong | |
| GCSKBadChars !(Set Char) |
Instances
| Eq GCSKeyError # | |
Defined in Napkin.Types.BigQuery | |
| Show GCSKeyError # | |
Defined in Napkin.Types.BigQuery Methods showsPrec :: Int -> GCSKeyError -> ShowS # show :: GCSKeyError -> String # showList :: [GCSKeyError] -> ShowS # | |
Constructors
| BQTableId | |
Fields
| |
Instances
| Eq BQTableId # | |
| Data BQTableId # | |
Defined in Napkin.Types.BigQuery Methods 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 # | |
| 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.
Constructors
| ACLEUserId !GCUserId | |
| ACLEUserEmail !GCUserEmail | |
| ACLEGroupId !GCGroupId | |
| ACLEGroupEmail !GCGroupEmail | |
| ACLEDomain !GCDomain | |
| ACLEProject !GCTeam !GCProjectId | |
| ACLEAllUsers | |
| ACLEAllAuthenticatedUsers |
Instances
| Eq GCSACLEntity # | |
Defined in Napkin.Types.BigQuery | |
| Ord GCSACLEntity # | |
Defined in Napkin.Types.BigQuery Methods 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 Methods showsPrec :: Int -> GCSACLEntity -> ShowS # show :: GCSACLEntity -> String # showList :: [GCSACLEntity] -> ShowS # | |
data GCSACLRole #
Instances
| Eq GCSACLRole # | |
Defined in Napkin.Types.BigQuery | |
| Ord GCSACLRole # | |
Defined in Napkin.Types.BigQuery Methods 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 Methods showsPrec :: Int -> GCSACLRole -> ShowS # show :: GCSACLRole -> String # showList :: [GCSACLRole] -> ShowS # | |
newtype GCUserEmail #
Constructors
| GCUserEmail | |
Fields
| |
Instances
| Eq GCUserEmail # | |
Defined in Napkin.Types.BigQuery | |
| Ord GCUserEmail # | |
Defined in Napkin.Types.BigQuery Methods 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 Methods showsPrec :: Int -> GCUserEmail -> ShowS # show :: GCUserEmail -> String # showList :: [GCUserEmail] -> ShowS # | |
Instances
| Eq GCGroupId # | |
| Ord GCGroupId # | |
| Show GCGroupId # | |
newtype GCGroupEmail #
Constructors
| GCGroupEmail | |
Fields
| |
Instances
| Eq GCGroupEmail # | |
Defined in Napkin.Types.BigQuery | |
| Ord GCGroupEmail # | |
Defined in Napkin.Types.BigQuery Methods 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 Methods showsPrec :: Int -> GCGroupEmail -> ShowS # show :: GCGroupEmail -> String # showList :: [GCGroupEmail] -> ShowS # | |
newtype GCProjectId #
Constructors
| GCProjectId | |
Fields
| |
Instances
| Eq GCProjectId # | |
Defined in Napkin.Types.BigQuery | |
| Ord GCProjectId # | |
Defined in Napkin.Types.BigQuery Methods 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 Methods showsPrec :: Int -> GCProjectId -> ShowS # show :: GCProjectId -> String # showList :: [GCProjectId] -> ShowS # | |
Constructors
| TableMeta | |
Instances
data Partitioning #
Constructors
| IntRange ColumnName RangeWithStep | |
| TimeColumn ColumnName |
Instances
type ColumnName = String #
data WriteDisposition #
Instances
data RangeWithStep #
Constructors
| RangeWithStep | |
Fields
| |
Instances
tableMeta :: ColumnName -> [ColumnName] -> TableMeta #