Projection

zio.blocks.projection.Projection
See theProjection companion class
object Projection

Attributes

Companion
class
Source
Projection.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Projection.type

Members list

Value members

Concrete methods

def apply[A : Schema : EntityPath](name: String): Projection[A]

Creates a per-entity projection. The EntityPath says where its store lives and which field of A is the ID.

Creates a per-entity projection. The EntityPath says where its store lives and which field of A is the ID.

Value parameters

name

the projection's name

Attributes

Source
Projection.scala
def apply[A](name: String, entityPath: EntityPath[A])(using schema: Schema[A]): Projection[A]

Like apply(name), but takes the EntityPath explicitly instead of finding it implicitly.

Like apply(name), but takes the EntityPath explicitly instead of finding it implicitly.

Attributes

Source
Projection.scala
def global[A : Schema](name: String): Projection[A]

Creates a global projection, whose events all go to one shared store (global/.db). Use it with routeToAll for totals and counters. It needs no EntityPath.

Creates a global projection, whose events all go to one shared store (global/.db). Use it with routeToAll for totals and counters. It needs no EntityPath.

Value parameters

name

the projection's name

Attributes

Source
Projection.scala