Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- withDb :: FilePath -> (Connection -> IO a) -> IO a
- findAll :: Connection -> IO [BigqueryProject]
- findCredentialsByIndex :: OAuth2CacheIndex -> Connection -> IO (Maybe CredentialsJson)
- findByIndex :: OAuth2CacheIndex -> Connection -> IO (Maybe BigqueryProject)
- findBy :: OAuth2CorrelatedKey -> Connection -> IO [BigqueryProject]
- store :: BigqueryProject -> Connection -> IO ()
- class CacheIndex a where
- cacheIndex :: a -> OAuth2CacheIndex
- deleteCorrelatedOAuth :: OAuth2CacheIndex -> Connection -> IO ()
- storeCorrelatedOAuth :: ByteString -> OAuth2CorrelatedKey -> Connection -> IO ()
- credentialsFromProject :: BigqueryProject -> CredentialsJson
Documentation
findAll :: Connection -> IO [BigqueryProject] #
findByIndex :: OAuth2CacheIndex -> Connection -> IO (Maybe BigqueryProject) #
findBy :: OAuth2CorrelatedKey -> Connection -> IO [BigqueryProject] #
store :: BigqueryProject -> Connection -> IO () #
store new credentials
if the user has already created and stored the credentials, we do an upsert
to refresh the oAuth Json token timestamp
deleteCorrelatedOAuth :: OAuth2CacheIndex -> Connection -> IO () #
storeCorrelatedOAuth :: ByteString -> OAuth2CorrelatedKey -> Connection -> IO () #