migrate

package module
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 5 Imported by: 1

README

GoZix SQL Migrate

License Documentation

Release Build Status Go Report Card Code Coverage

The bundle provide a SQL migrate integration to GoZix application.

Installation

go get github.com/gozix/sql-migrate/v3

Dependencies

Documentation

You can find documentation on pkg.go.dev and read source code if needed.

Questions

If you have any questions, feel free to create an issue.

Documentation

Overview

Package migrate provide sql-migrate bundle.

Index

Constants

View Source
const BundleName = "sql-migrate"

BundleName is default definition name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

Bundle implements the glue.Bundle interface.

func NewBundle

func NewBundle(options ...Option) (b *Bundle)

NewBundle create bundle instance.

func (*Bundle) Build

func (b *Bundle) Build(builder di.Builder) error

Build implements the glue.Bundle interface.

func (*Bundle) DependsOn

func (b *Bundle) DependsOn() []string

DependsOn implements the glue.DependsOn interface.

func (*Bundle) Name

func (b *Bundle) Name() string

Name implements the glue.Bundle interface.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option interface.

func Connection

func Connection(value string) Option

Connection option.

func Dialect

func Dialect(value string) Option

Dialect option.

func IgnoreUnknown added in v3.1.0

func IgnoreUnknown(value bool) Option

IgnoreUnknown option

func Path

func Path(value string) Option

Path option.

func Schema

func Schema(value string) Option

Schema option.

func Table

func Table(value string) Option

Table option.

Directories

Path Synopsis
internal
command
Package command contains cli command definitions.
Package command contains cli command definitions.

Jump to

Keyboard shortcuts

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