Documentation
¶
Index ¶
- type PostgresTestContainer
- func (c *PostgresTestContainer) ConnectionString() string
- func (c *PostgresTestContainer) Container() *postgres.PostgresContainer
- func (c *PostgresTestContainer) CreateSchema(ctx context.Context, models ...any) error
- func (c *PostgresTestContainer) DB() *bun.DB
- func (c *PostgresTestContainer) Terminate(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresTestContainer ¶
type PostgresTestContainer struct {
// contains filtered or unexported fields
}
func (*PostgresTestContainer) ConnectionString ¶
func (c *PostgresTestContainer) ConnectionString() string
func (*PostgresTestContainer) Container ¶
func (c *PostgresTestContainer) Container() *postgres.PostgresContainer
func (*PostgresTestContainer) CreateSchema ¶
func (c *PostgresTestContainer) CreateSchema(ctx context.Context, models ...any) error
func (*PostgresTestContainer) DB ¶
func (c *PostgresTestContainer) DB() *bun.DB
Click to show internal directories.
Click to hide internal directories.