version

package
v0.0.0-...-0829b1e Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MigrationTable = "leaf_migrations"

Variables

This section is empty.

Functions

This section is empty.

Types

type DataVersion

type DataVersion struct {
	// Note: concat Version and NeutralizedName
	// NeutralizedName is name replace space with _
	ObjectID    primitive.ObjectID `json:"_id" bson:"_id" gorm:"-"`
	ID          string             `json:"id" bson:"id" gorm:"primaryKey;column=id"`
	Version     uint64             `json:"version" json:"version" gorm:"index;column=version"`
	Name        string             `json:"name" json:"name" gorm:"column=name"`
	ExecuteTime string             `json:"execute_time" json:"execute_time" gorm:"column=execute_time"`
}

func (*DataVersion) TableName

func (d *DataVersion) TableName() string

func (*DataVersion) ToBson

func (d *DataVersion) ToBson() bson.M

type Version

type Version uint64
const LatestVersion Version = math.MaxUint64
const NoVersion Version = 0

Jump to

Keyboard shortcuts

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