pg

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 10 Imported by: 0

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 ConnectionOption struct {
	DBName string
	Host   string
	Port   string
	User   string
	Pass   string
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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