Documentation ¶
Index ¶
- func New(ctx context.Context) *gorm.DB
- type DBDriver
- func (d *DBDriver) Create(param repository.RepositoryJson) error
- func (d *DBDriver) Delete(id uuid.UUID) error
- func (d *DBDriver) GetAll() (repository.RepositoryJsons, error)
- func (d *DBDriver) GetById(id uuid.UUID) (repository.RepositoryJson, error)
- func (d *DBDriver) Update(id uuid.UUID, param repository.RepositoryParamJson) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBDriver ¶
type DBDriver struct {
// contains filtered or unexported fields
}
func NewDBdriver ¶
func (*DBDriver) Create ¶
func (d *DBDriver) Create(param repository.RepositoryJson) error
func (*DBDriver) GetAll ¶
func (d *DBDriver) GetAll() (repository.RepositoryJsons, error)
func (*DBDriver) GetById ¶
func (d *DBDriver) GetById(id uuid.UUID) (repository.RepositoryJson, error)
func (*DBDriver) Update ¶
func (d *DBDriver) Update(id uuid.UUID, param repository.RepositoryParamJson) error
Click to show internal directories.
Click to hide internal directories.