addon

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteTemplate

func WriteTemplate(baseDir string, templateName string, sqlcAddonVersion string) error

Types

type MigrationFile

type MigrationFile struct {
	Name    string
	Version int
	Content string
	Last    bool
}

type Sql

type Sql struct {
	Schema string `yaml:"schema"`
}

type SqlcAddonConf

type SqlcAddonConf struct {
	AddonOut     string `yaml:"addon_out"`
	DatabaseName string `yaml:"database_name"`
}

type SqlcConf

type SqlcConf struct {
	Sql []Sql `yaml:"sql"`
}

type TemplateValues

type TemplateValues struct {
	DatabaseName     string
	MigrationFiles   []MigrationFile
	SqlcAddonVersion string
}

Jump to

Keyboard shortcuts

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