Documentation ¶
Index ¶
- func Create[R Record](ctx context.Context, r R) error
- func FindById[R Record](ctx context.Context, obj R, id string) error
- func Init(ctx context.Context, cfg *Config) error
- func NewWriteTx(ctx context.Context, fn func(ctx context.Context) error) error
- func OpenDB(cfg *Config) (*gorm.DB, error)
- func RegisterType[R Record]() error
- func RequiresWriteTx(ctx context.Context) (*gorm.DB, error)
- func WriteTx1(ctx context.Context, fn func(ctx context.Context) error) error
- type Config
- type ErrUnsupportedDriver
- type IdAutoGenerator
- type ReadCtx
- type Record
- type WriteCtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterType ¶
Types ¶
type ErrUnsupportedDriver ¶
type ErrUnsupportedDriver struct {
// contains filtered or unexported fields
}
func (*ErrUnsupportedDriver) Error ¶
func (e *ErrUnsupportedDriver) Error() string
type IdAutoGenerator ¶
Click to show internal directories.
Click to hide internal directories.