Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountRepository ¶
Types ¶
type SQLUserRepository ¶
type SQLUserRepository struct {
// contains filtered or unexported fields
}
func NewSQLUserRepository ¶
func NewSQLUserRepository(db *sqlx.DB) *SQLUserRepository
NewSQLUserRepository creates a new SQLUserRepository
func (*SQLUserRepository) Create ¶
func (r *SQLUserRepository) Create(user *domain.User) error
Create inserts a new user into the database
func (*SQLUserRepository) Delete ¶
func (r *SQLUserRepository) Delete(id int) error
Delete removes a user from the database
Click to show internal directories.
Click to hide internal directories.