Module

Yoga.SQLite.OmLayer

Package
purescript-yoga-sqlite-om
Repository
rowtype-yoga/purescript-yoga-sqlite-om

#SQLiteConfig Source

type SQLiteConfig = { path :: DatabasePath }

SQLite configuration

#SQLiteL Source

type SQLiteL :: Row Type -> Row Typetype SQLiteL r = (sqlite :: DBConnection | r)

Row type for SQLite service

#sqliteLayer Source

sqliteLayer :: forall r. OmLayer (sqliteConfig :: SQLiteConfig | r) () { sqlite :: DBConnection }

Create a SQLite layer that provides DBConnection as a service Requires SQLiteConfig in context

#sqliteLayer' Source

sqliteLayer' :: forall r. SQLiteConfig -> OmLayer r () { sqlite :: DBConnection }

Create a SQLite layer with inline config Useful when you don't need config from context