location

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	IsFileSystem bool      // 是否系统文件目录
	Path         string    // 文件目录
	Sqls         []SqlFile // sql列表
}

func New

func New(option *Option, location ...string) ([]Location, error)

type Option added in v0.0.5

type Option struct {
	SqlMigrationSeparator string
	SqlMigrationPrefix    string
}

type SqlFile

type SqlFile struct {
	Name        string // 文件名
	AbsPath     string // 绝对路径
	Path        string // 相对路径
	Mod         string
	Version     string // 版本
	Description string // 描述
}

SqlFile sql变更文件

func (SqlFile) CheckSum

func (l SqlFile) CheckSum() (int64, error)

func (SqlFile) Content

func (s SqlFile) Content() (string, error)

Content 文件内容

Jump to

Keyboard shortcuts

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