migrate

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Overview

Package migrate provides the functionality to run goose migrations on a clickhouse database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGoose

func RunGoose(ctx context.Context, gooseArgs []string, registerFuncs []func(), 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). registerFuncs should be a list of functions that register the migrations. This function is safe to run concurrently.

func RunGooseCmd added in v0.0.3

func RunGooseCmd(ctx context.Context, registerFuncs []func()) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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