SQLiteProjectionStore

zio.blocks.projection.SQLiteProjectionStore
See theSQLiteProjectionStore companion class

Attributes

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

Members list

Value members

Concrete methods

def make[A : Schema : EntityPath](path: String, cache: TransactorCache): Task[SQLiteProjectionStore[A]]

Creates a store for A in the SQLite file at path.

Creates a store for A in the SQLite file at path.

Nothing is written yet: the tables are created the first time the store is used. The folder of path must exist, because SQLite does not create folders.

Value parameters

cache

the cache that gives the store the Transactor of the file

path

the database file, such as users/user_profiles.db

Attributes

Source
SQLiteProjectionStore.scala
def makeSync[A : Schema : EntityPath](path: String, cache: TransactorCache): SQLiteProjectionStore[A]

Like make, but runs on the calling thread and returns the store directly, for tests that need one outside a ZIO program.

Like make, but runs on the calling thread and returns the store directly, for tests that need one outside a ZIO program.

Value parameters

cache

the cache that gives the store the Transactor of the file

path

the database file, such as users/user_profiles.db

Attributes

Source
SQLiteProjectionStore.scala