Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Delete(ctx context.Context, id string) (err error)
- func (r *Repository) Fetch(ctx context.Context) (val []pmbulbi.JurusanSekolah, err error)
- func (r *Repository) GetById(ctx context.Context, id string) (val pmbulbi.JurusanSekolah, err error)
- func (r *Repository) GetJurusanByIdJnsSekolah(ctx context.Context, id_jenis_sekolah int) (dest []pmbulbi.JurusanSekolah, err error)
- func (r *Repository) Insert(ctx context.Context, val pmbulbi.JurusanSekolah) (err error)
- func (r *Repository) Update(ctx context.Context, id string, val pmbulbi.JurusanSekolah) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *gorm.DB) *Repository
func (*Repository) Delete ¶ added in v0.5.5
func (r *Repository) Delete(ctx context.Context, id string) (err error)
func (*Repository) Fetch ¶
func (r *Repository) Fetch(ctx context.Context) (val []pmbulbi.JurusanSekolah, err error)
func (*Repository) GetById ¶ added in v0.5.6
func (r *Repository) GetById(ctx context.Context, id string) (val pmbulbi.JurusanSekolah, err error)
func (*Repository) GetJurusanByIdJnsSekolah ¶
func (r *Repository) GetJurusanByIdJnsSekolah(ctx context.Context, id_jenis_sekolah int) (dest []pmbulbi.JurusanSekolah, err error)
func (*Repository) Insert ¶ added in v0.5.5
func (r *Repository) Insert(ctx context.Context, val pmbulbi.JurusanSekolah) (err error)
func (*Repository) Update ¶ added in v0.5.5
func (r *Repository) Update(ctx context.Context, id string, val pmbulbi.JurusanSekolah) (err error)
Click to show internal directories.
Click to hide internal directories.