ZIO Query

ZIO Query

  • Overview
  • Use Cases
  • API
  • About

›Overview

Overview

  • Summary
  • Creating Data Sources
  • Creating Queries
  • Running Queries

Creating Queries

There are several ways to create a ZQuery. We've seen ZQuery.fromRequest, but you can also:

  • create a query from a pure value with ZQuery.succeed
  • create a query from an effect with ZQuery.fromZIO
  • combine multiple queries with ZQuery.collectAllPar and ZQuery.foreachPar and their sequential equivalents ZQuery.collectAll and ZQuery.foreach

If you have a ZQuery, you can use:

  • map and mapError to modify the result or error type
  • flatMap, zipWith, or zipWithPar to combine it with other queries
  • provide and provideSome to eliminate some or all of its environmental requirements
← Creating Data SourcesRunning Queries →
ZIO Query
GitHub
Star
Chat with us on Discord
discord
Additional resources
Scaladoc of ZIO Query
Copyright © 2022 ZIO Maintainers