napkin-0.5.13
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Napkin.Run.BigQuery

Description

 
Synopsis

Documentation

data family BackendSchemaField bk #

Instances

Instances details
Command GetRelationSchema [BackendSchemaField Sqlite] Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command GetRelationSchema [BackendSchemaField Redshift] Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command GetRelationSchema [BackendSchemaField Postgres] Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetRelationSchema [BackendSchemaField BigQuery] BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Eq (BackendSchemaField Sqlite) # 
Instance details

Defined in Napkin.Run.Sqlite

Eq (BackendSchemaField Redshift) # 
Instance details

Defined in Napkin.Run.Redshift

Eq (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Eq (BackendSchemaField BigQuery) # 
Instance details

Defined in Napkin.Run.BigQuery

Show (BackendSchemaField Sqlite) # 
Instance details

Defined in Napkin.Run.Sqlite

Show (BackendSchemaField Redshift) # 
Instance details

Defined in Napkin.Run.Redshift

Show (BackendSchemaField Postgres) # 
Instance details

Defined in Napkin.Run.Postgres

Show (BackendSchemaField BigQuery) # 
Instance details

Defined in Napkin.Run.BigQuery

FromRow (BackendSchemaField Sqlite) # 
Instance details

Defined in Napkin.Run.Sqlite

data BackendSchemaField Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

data BackendSchemaField Redshift # 
Instance details

Defined in Napkin.Run.Redshift

data BackendSchemaField Postgres # 
Instance details

Defined in Napkin.Run.Postgres

data BackendSchemaField BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

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.

mkBigQueryEnv' #

Arguments

:: (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.

Orphan instances

Backend BigQuery # 
Instance details

Associated Types

data BackendConn BigQuery #

RunBackendConn BigQuery # 
Instance details

Command UpdateQuery () BigQuery # 
Instance details

Command Grant () BigQuery # 
Instance details

Command CheckTableExists Bool BigQuery # 
Instance details

Command DeleteFrom () BigQuery # 
Instance details

Command InsertIntoQuery () BigQuery # 
Instance details

Command DropTable () BigQuery # 
Instance details

Command DropView () BigQuery # 
Instance details

Command CopyTable () BigQuery # 
Instance details

Command RenameTable () BigQuery #

BQ implements rename via copy-then-drop

Instance details

Command GetRelationSchema [BackendSchemaField BigQuery] BigQuery # 
Instance details

HasBackendSchemaField BigQuery # 
Instance details

Associated Types

data BackendSchemaField BigQuery #

Command (CreateMaterializedViewAs MaterializedViewMeta) () BigQuery # 
Instance details

Command (CreateViewAs ()) () BigQuery # 
Instance details

Command (CreateTableAs ()) () BigQuery # 
Instance details

Command (CreateTableAs TableMeta) () BigQuery # 
Instance details

Eq (BackendSchemaField BigQuery) # 
Instance details

Show (BackendSchemaField BigQuery) # 
Instance details