migrateutil

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Postgres   *ConfPostgres
	ClickHouse *ConfClickHouse
}

type ConfClickHouse

type ConfClickHouse struct {
	Username string
	Password string
	Host     string
	Port     int64
	Database string
}

type ConfPostgres

type ConfPostgres struct {
	Username string
	Password string
	Host     string
	Port     int64
	Database string
}

type Migrator

type Migrator struct {
	Migration embed.FS
}

func NewMigrator

func NewMigrator(
	migration embed.FS,
) *Migrator

func (*Migrator) ClickHouse

func (m *Migrator) ClickHouse(db *sql.DB) error

func (*Migrator) Postgres

func (m *Migrator) Postgres(db *sql.DB) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL