14 lines
186 B
Go
14 lines
186 B
Go
package etcdb
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type SetSpec[T any] struct {
|
|
Spec Spec
|
|
}
|
|
|
|
func (p SetSpec[T]) In(ctx context.Context) TypedDB[T] {
|
|
return TypedDB[T]{p.Spec.In(ctx), JSONCodec}
|
|
}
|