( config: SqliteClientConfig )
| 220 | * @since 1.0.0 |
| 221 | */ |
| 222 | export const layer = ( |
| 223 | config: SqliteClientConfig |
| 224 | ): Layer.Layer<SqliteClient | Client.SqlClient, ConfigError> => |
| 225 | Layer.scopedContext( |
| 226 | Effect.map(make(config), (client) => |
| 227 | Context.make(SqliteClient, client).pipe( |
| 228 | Context.add(Client.SqlClient, client) |
| 229 | )) |
| 230 | ).pipe(Layer.provide(Reactivity.layer)) |