Versions in this module Expand all Collapse all v0 v0.8.3 Feb 14, 2025 v0.8.2 Feb 14, 2025 Changes in this version + func ResetInstance(ctx context.Context, db *sql.DB) error + type ConnectionOption string + const ConnectionOptionDatabase + type ConnectionOptions map[ConnectionOption]string + func (c ConnectionOptions) ToDSN() string + func (c ConnectionOptions) With(option ConnectionOption, value string) ConnectionOptions + type DB struct + func (d *DB) DropDB() error + func (d *DB) GetConnOpts() ConnectionOptions + func (d *DB) GetDSN() string + func (d *DB) GetName() string + type Engine struct + func StartEngine() (*Engine, error) + func StartEngineUsingPgDir(pgDir string) (_ *Engine, retErr error) + func (e *Engine) Close() error + func (e *Engine) CreateDatabase() (*DB, error) + func (e *Engine) CreateDatabaseWithName(name string) (*DB, error) + func (e *Engine) GetPostgresDatabaseConnOpts() ConnectionOptions + func (e *Engine) GetPostgresDatabaseDSN() string