Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data BigQueryRunError
- data family BackendConn b
- data family BackendSchemaField bk
- mkBigQueryEnv :: (MonadCatch m, Katip m) => Maybe FilePath -> DbBackendOptions BigQuery -> BQProjectId -> Maybe BQDataSetId -> m (BackendConn BigQuery)
- mkBigQueryEnv' :: (MonadCatch m, MonadIO m) => Natural -> IO GoogleEnv -> BQProjectId -> Maybe BQDataSetId -> Labels -> m (BackendConn BigQuery)
- mkBigQueryEnvWithCredentials :: (MonadCatch m, Katip m) => Maybe ByteString -> Credentials BigQueryScopes -> DbBackendOptions BigQuery -> BQProjectId -> Maybe BQDataSetId -> m (BackendConn BigQuery)
- mkBigQueryEnvWithJsonCredentials :: (MonadCatch m, Katip m) => Maybe ByteString -> CredentialsJson -> DbBackendOptions BigQuery -> BQProjectId -> Maybe BQDataSetId -> m (BackendConn BigQuery)
- mkBigQueryEnvWithCredentialsFile :: (MonadCatch m, Katip m) => FilePath -> DbBackendOptions BigQuery -> BQProjectId -> Maybe BQDataSetId -> m (BackendConn BigQuery)
Documentation
data BigQueryRunError #
Instances
Eq BigQueryRunError # | |
Defined in Napkin.Run.BigQuery.Types (==) :: BigQueryRunError -> BigQueryRunError -> Bool # (/=) :: BigQueryRunError -> BigQueryRunError -> Bool # | |
Show BigQueryRunError # | |
Defined in Napkin.Run.BigQuery.Types showsPrec :: Int -> BigQueryRunError -> ShowS # show :: BigQueryRunError -> String # showList :: [BigQueryRunError] -> ShowS # | |
Exception BigQueryRunError # | |
Defined in Napkin.Run.BigQuery.Types |
data family BackendConn b #
Instances
data BackendConn Sqlite # | |
Defined in Napkin.Run.Sqlite | |
data BackendConn Redshift # | |
Defined in Napkin.Run.Redshift | |
data BackendConn Postgres # | |
Defined in Napkin.Run.Postgres | |
data BackendConn BigQuery # | |
Defined in Napkin.Run.BigQuery |
data family BackendSchemaField bk #
Instances
mkBigQueryEnv :: (MonadCatch m, Katip m) => Maybe FilePath -> DbBackendOptions BigQuery -> BQProjectId -> Maybe BQDataSetId -> m (BackendConn BigQuery) #
Creates a google BigQuery environment. Takes the Maybe
provided credential file. If none, then try to use the gCloud SDK credentials.
:: (MonadCatch m, MonadIO m) | |
=> Natural | Number of concurrent requests |
-> IO GoogleEnv | How do we set up each entry in the GoogleEnv pool? |
-> BQProjectId | |
-> Maybe BQDataSetId | |
-> Labels | |
-> m (BackendConn BigQuery) |
Makes a BigQuery env, but with control over configuring how the Google environment is set up. You should usually call mkGoogleEnv
and then fmap
some customization over it.
mkBigQueryEnvWithCredentials :: (MonadCatch m, Katip m) => Maybe ByteString -> Credentials BigQueryScopes -> DbBackendOptions BigQuery -> BQProjectId -> Maybe BQDataSetId -> m (BackendConn BigQuery) #
mkBigQueryEnvWithJsonCredentials :: (MonadCatch m, Katip m) => Maybe ByteString -> CredentialsJson -> DbBackendOptions BigQuery -> BQProjectId -> Maybe BQDataSetId -> m (BackendConn BigQuery) #
mkBigQueryEnvWithCredentialsFile :: (MonadCatch m, Katip m) => FilePath -> DbBackendOptions BigQuery -> BQProjectId -> Maybe BQDataSetId -> m (BackendConn BigQuery) #