Documentation ¶
Index ¶
- type Container
- func (c *Container) DropAllTables(ctx context.Context) error
- func (c *Container) GetConnString() string
- func (c *Container) Migrate(ctx context.Context, sourceURL string) error
- func (c *Container) MigrateFS(ctx context.Context, fs fs.FS, path string) error
- func (c *Container) OpenPGXDB(ctx context.Context) (*pgxpool.Pool, error)
- func (c *Container) Seed(ctx context.Context, sourceURL string) error
- func (c *Container) Terminate(ctx context.Context) error
- func (c *Container) TruncateAllTables(ctx context.Context) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func (*Container) GetConnString ¶
func (*Container) Migrate ¶
Migrate migrates with directory. E.g: file://path/to/root/internal/migration/todo
type Option ¶
type Option func(*Container)
func WithDBName ¶
func WithDBPassword ¶
func WithDBUser ¶
Click to show internal directories.
Click to hide internal directories.