Versions in this module Expand all Collapse all v0 v0.21.0 Feb 22, 2026 Changes in this version + type Container struct + Env map[string]string + Image string + Port string + func (c *Container) Start(ctx context.Context) (string, func(ctx context.Context), error) + func (c *Container) Stop(ctx context.Context) error + type TestContainerPostgreSQLDriver struct + func NewTestContainerPostgreSQLDriver() *TestContainerPostgreSQLDriver + func (d *TestContainerPostgreSQLDriver) Connect(ctx context.Context, config config.DriverConfig) (plugin.DriverConnection, error) + func (d *TestContainerPostgreSQLDriver) Disconnect(ctx context.Context, conn plugin.DriverConnection) error + type TestContainerPostgreSQLDriverConnection struct + Close func(ctx context.Context) + Conn *pgx.Conn + Container *Container + func (c *TestContainerPostgreSQLDriverConnection) AppendAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *TestContainerPostgreSQLDriverConnection) LockAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *TestContainerPostgreSQLDriverConnection) Query(execCtx plugin.DriverExecutionContext) plugin.DriverQuery + func (c *TestContainerPostgreSQLDriverConnection) ReadAuditLogs(ctx context.Context, execCtx plugin.DriverExecutionContext) ([]plugin.DriverAuditLog, error) + func (c *TestContainerPostgreSQLDriverConnection) UnlockAuditLog(ctx context.Context, execCtx plugin.DriverExecutionContext, ...) error + func (c *TestContainerPostgreSQLDriverConnection) UpsertAuditLockTable(ctx context.Context, execCtx plugin.DriverExecutionContext) error + func (c *TestContainerPostgreSQLDriverConnection) UpsertAuditLogTable(ctx context.Context, execCtx plugin.DriverExecutionContext) error + type TestContainerPostgreSQLQuery struct + func (q *TestContainerPostgreSQLQuery) Begin(ctx context.Context) (plugin.DriverQuery, error) + func (q *TestContainerPostgreSQLQuery) Commit(ctx context.Context) error + func (q *TestContainerPostgreSQLQuery) Exec(ctx context.Context, query string, args ...any) error + func (q *TestContainerPostgreSQLQuery) Query(ctx context.Context, query string, args ...any) (*plugin.DriverQueryResult, error) + func (q *TestContainerPostgreSQLQuery) Rollback(ctx context.Context) error