( config: SqliteClientConfig )
| 211 | * @since 1.0.0 |
| 212 | */ |
| 213 | export const layer = ( |
| 214 | config: SqliteClientConfig |
| 215 | ): Layer.Layer<SqliteClient | Client.SqlClient, ConfigError> => |
| 216 | Layer.scopedContext( |
| 217 | Effect.map(make(config), (client) => |
| 218 | Context.make(SqliteClient, client).pipe( |
| 219 | Context.add(Client.SqlClient, client) |
| 220 | )) |
| 221 | ).pipe(Layer.provide(Reactivity.layer)) |