Documentation
¶
Index ¶
- Variables
- type Conn
- func (conn *Conn[T]) Create(ctx context.Context, r T) (T, error)
- func (conn *Conn[T]) FindAll(ctx context.Context, filter query.Opts) ([]T, error)
- func (conn *Conn[T]) FindByID(ctx context.Context, id string) (T, error)
- func (conn *Conn[T]) FindByPk(ctx context.Context, pk string, filter query.Opts) ([]T, error)
- func (conn *Conn[T]) FindByPkAndSk(ctx context.Context, pk string, sk string) (T, error)
- type DBConf
- type Serializable
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("entity not found")
)
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn[T Serializable[T]] struct { // contains filtered or unexported fields }
Conn is the connection to the Dynamodb
func New ¶
func New[T Serializable[T]](conf DBConf) *Conn[T]
type Serializable ¶
Click to show internal directories.
Click to hide internal directories.