(config: SqliteClientConfig)
| 161 | }) |
| 162 | |
| 163 | export const layer = (config: SqliteClientConfig): Layer.Layer<SqliteClient | Client.SqlClient> => |
| 164 | Layer.effectContext( |
| 165 | Effect.map(make(config), (client) => |
| 166 | Context.make(SqliteClient, client).pipe(Context.add(Client.SqlClient, client)), |
| 167 | ), |
| 168 | ).pipe(Layer.provide(Reactivity.layer)) |