migrate

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Overview

Package migrate helps with concurrency safe goose migrations for clickhouse.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGoose

func RunGoose(ctx context.Context, gooseArgs []string, baseFS fs.FS, db *sql.DB) error

RunGoose runs the goose command with the provided arguments. args should be the command and the arguments to pass to goose. eg RunGoose(ctx, []string{"up", "-v"}, db). baseFS should be the filesystem that holds versioned migration files. This function is safe to run concurrently.

func RunGooseCmd added in v0.0.3

func RunGooseCmd(ctx context.Context, baseFS fs.FS) error

RunGooseCmd parses cmdline arguments and runs the goose command using the provided baseFS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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