Versions in this module Expand all Collapse all v1 v1.7.3 Feb 28, 2026 v1.7.2 Feb 20, 2026 v1.7.1 Feb 16, 2026 v1.7.0 Feb 9, 2026 Changes in this version + func GenerateTempSchemaName() string + type DesiredStateProvider interface + ApplySchema func(ctx context.Context, schema string, sql string) error + GetConnectionDetails func() (string, int, string, string, string) + GetSchemaName func() string + Stop func() error + type EmbeddedPostgres struct + func StartEmbeddedPostgres(config *EmbeddedPostgresConfig) (*EmbeddedPostgres, error) + func (ep *EmbeddedPostgres) ApplySchema(ctx context.Context, schema string, sql string) error + func (ep *EmbeddedPostgres) GetConnectionDetails() (host string, port int, database, username, password string) + func (ep *EmbeddedPostgres) GetSchemaName() string + func (ep *EmbeddedPostgres) Stop() error + type EmbeddedPostgresConfig struct + Database string + Password string + Username string + Version PostgresVersion + type ExternalDatabase struct + func NewExternalDatabase(config *ExternalDatabaseConfig) (*ExternalDatabase, error) + func (ed *ExternalDatabase) ApplySchema(ctx context.Context, schema string, sql string) error + func (ed *ExternalDatabase) GetConnectionDetails() (host string, port int, database, username, password string) + func (ed *ExternalDatabase) GetSchemaName() string + func (ed *ExternalDatabase) Stop() error + type ExternalDatabaseConfig struct + Database string + Host string + Password string + Port int + TargetMajorVersion int + Username string + type PostgresVersion = embeddedpostgres.PostgresVersion + func DetectPostgresVersionFromDB(host string, port int, database, user, password string) (PostgresVersion, error)