Documentation
¶
Index ¶
- func DecodeConfig(input any) (database.Connector, error)
- func NewConnector(options Options) database.Connector
- func StartEmbedded() (connector database.Connector, stop func(), err error)
- func StartEmbeddedWithOptions(options Options) (connector database.Connector, stop func(), err error)
- type Options
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
func StartEmbedded ¶
StartEmbedded starts an embedded postgres v18 instance and returns a database connector and a stop function. The database is started on a random port and, by default, data is stored in a temporary directory. It is used by embedded-postgres smoke tests and callers that need isolated storage.
Types ¶
Click to show internal directories.
Click to hide internal directories.