Documentation ¶ Index ¶ type ClientPg func NewClientPg(ctx context.Context, t *testing.T, conf Config) (*ClientPg, error) func (p *ClientPg) DB() *sql.DB func (p *ClientPg) Migrate(migrateDir string) error type Config func (c Config) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ClientPg ¶ type ClientPg struct { // contains filtered or unexported fields } func NewClientPg ¶ func NewClientPg(ctx context.Context, t *testing.T, conf Config) (*ClientPg, error) func (*ClientPg) DB ¶ func (p *ClientPg) DB() *sql.DB func (*ClientPg) Migrate ¶ func (p *ClientPg) Migrate(migrateDir string) error type Config ¶ type Config struct { Host string User string Port int DbName string Password string } func (Config) String ¶ func (c Config) String() string Source Files ¶ View all Source files db.go postgres.go Click to show internal directories. Click to hide internal directories.