postgres

package
v0.0.0-...-8c8a4b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDBRepository

func InitDBRepository(_db *gorm.DB, _logger *zap.Logger) model.IDBRepository

Types

type JobListingRepo

type JobListingRepo struct {
	DB *gorm.DB
	// contains filtered or unexported fields
}

func (*JobListingRepo) GetDBInstanceWithoutTxn

func (dbRepo *JobListingRepo) GetDBInstanceWithoutTxn() *gorm.DB

func (*JobListingRepo) GetJobById

func (repo *JobListingRepo) GetJobById(_ctx context.Context, _jobId string) (*model.JobListing, error)

func (*JobListingRepo) InitTxn

func (dbRepo *JobListingRepo) InitTxn(_ctx context.Context) (*gorm.DB, func())

func (*JobListingRepo) WithTxn

func (dbRepo *JobListingRepo) WithTxn(_txnHandler *gorm.DB) model.IDBMethods

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL