Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(opt *ConnectionOption, timezone *time.Location) repository.Repository
Types ¶
type ConnectionOption ¶
type RepositoryPostgres ¶
type RepositoryPostgres struct {
// contains filtered or unexported fields
}
func (*RepositoryPostgres) Close ¶
func (pg *RepositoryPostgres) Close() error
func (*RepositoryPostgres) Connect ¶
func (pg *RepositoryPostgres) Connect(ctx context.Context) error
func (*RepositoryPostgres) GetDB ¶
func (pg *RepositoryPostgres) GetDB() *gorm.DB
func (*RepositoryPostgres) Migrate ¶
func (pg *RepositoryPostgres) Migrate() error
Click to show internal directories.
Click to hide internal directories.