Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbeddedPostgres ¶
type EmbeddedPostgres struct {
*MinimalPostgres
Version string
TempDir string
}
EmbeddedPostgres manages an embedded PostgreSQL instance for schema generation
func NewEmbeddedPostgres ¶
func NewEmbeddedPostgres(version string) (*EmbeddedPostgres, error)
NewEmbeddedPostgres creates a new embedded PostgreSQL instance for schema generation Note: This currently requires PostgreSQL to be installed on the system
func (*EmbeddedPostgres) Cleanup ¶
func (e *EmbeddedPostgres) Cleanup() error
Cleanup removes the embedded PostgreSQL installation
type MinimalPostgres ¶
type MinimalPostgres struct {
BinDir string
}
MinimalPostgres provides just the functionality needed for schema generation
func (*MinimalPostgres) DescribeConfig ¶
func (p *MinimalPostgres) DescribeConfig() ([]schemas.Param, error)
DescribeConfig executes `postgres --describe-config` and returns parsed parameters
Click to show internal directories.
Click to hide internal directories.