Module

Yoga.SQLite.OmLayer

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

#SQLiteConfig Source

type SQLiteConfig = { url :: String }

SQLite configuration

#SQLiteL Source

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

Row type for SQLite service

#sqliteLayer Source

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

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

#sqliteLayer' Source

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

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