migration

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package migration provides a function for migrating a clickhouse database to a schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(tmplData *codegen.TemplateData, outputDir string, cfg Config) error

Generate creates a new ClickHouse table file.

Types

type Config

type Config struct {
	// fileName is the name of the migration file.
	FileName string
}

Config is the configuration for the migration generator.

Jump to

Keyboard shortcuts

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