effect-cluster is not required for transaction semantics, it's for durable distributed flows. Context is sufficient
effect-cluster is not required for transaction semantics, it's for durable distributed flows. Context is sufficient
db-transaction semantics can be found in the `.withTransaction` method in `SqlClient` as part of the `@effect/sql` and it's implementations
db-transaction semantics can be found in the `.withTransaction` method in `SqlClient` as part of the `@effect/sql` and it's implementations
```ts
Schema.NonEmptryTrimmedString.pipe(
Schema.brand("Foo"),
Schema.optional,
)
```
Etc etc, no need to overcomplicate
```ts
Schema.NonEmptryTrimmedString.pipe(
Schema.brand("Foo"),
Schema.optional,
)
```
Etc etc, no need to overcomplicate
I am not sure what you mean by 'generic', all schema constructors are generic. requiredToOptional take 2 schemas, `from` and `to`, and an object with 2 methods to go back and forth between them.
I am not sure what you mean by 'generic', all schema constructors are generic. requiredToOptional take 2 schemas, `from` and `to`, and an object with 2 methods to go back and forth between them.