Documentation ¶ Index ¶ type Client func NewClientPg(ctx context.Context, t *testing.T, conf Config) (*Client, error) func (c *Client) DB() *sql.DB func (c *Client) 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 Client ¶ type Client struct { // contains filtered or unexported fields } func NewClientPg ¶ func NewClientPg(ctx context.Context, t *testing.T, conf Config) (*Client, error) func (*Client) DB ¶ func (c *Client) DB() *sql.DB func (*Client) Migrate ¶ func (c *Client) 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 client.go Click to show internal directories. Click to hide internal directories.