Documentation ¶
Index ¶
- func AutoMigrate(db *gorm.DB) error
- func DBMigrate(dbInstance *gorm.DB, dbName string) error
- type UserGORMRepo
- func (u *UserGORMRepo) Create(ctx context.Context, user *entity.User) error
- func (u *UserGORMRepo) Delete(ctx context.Context, user *entity.User) error
- func (u *UserGORMRepo) Get(ctx context.Context, id int64) (user *entity.User, err error)
- func (u *UserGORMRepo) GetByEmail(ctx context.Context, email string) (user *entity.User, err error)
- func (u *UserGORMRepo) Update(ctx context.Context, user *entity.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMigrate ¶
AutoMigrate execute gorm auto migrations on database
Types ¶
type UserGORMRepo ¶
UserGORMRepo ...
func NewGORMUserRepository ¶
func NewGORMUserRepository(dbInstance *gorm.DB) *UserGORMRepo
NewGORMUserRepository ...
func (*UserGORMRepo) GetByEmail ¶
GetByEmail return a user filtered by email
Click to show internal directories.
Click to hide internal directories.