Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- withDb :: FilePath -> (Connection -> IO a) -> IO a
- 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
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 () #