migration

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommonEcosystemScript

func GetCommonEcosystemScript() (string, error)

GetCommonEcosystemScript returns script with common tables

func GetEcosystemScript

func GetEcosystemScript(data SqlData) (string, error)

GetEcosystemScript returns script to create ecosystem

func GetFirstEcosystemScript

func GetFirstEcosystemScript(data SqlData) (ret string, err error)

GetFirstEcosystemScript returns script to update with additional data for first ecosystem

func GetFirstTableScript

func GetFirstTableScript(data SqlData) (string, error)

GetFirstTableScript returns script to update _tables for first ecosystem

func InitMigrate

func InitMigrate(db database) error

InitMigrate applies initial migrations

func UpdateMigrate

func UpdateMigrate(db database) error

UpdateMigrate applies update migrations

Types

type SqlData

type SqlData struct {
	Ecosystem   int
	Wallet      int64
	Name        string
	Founder     int64
	AppID       int64
	Account     string
	Digits      int64
	TokenSymbol string
	TokenName   string
}

Directories

Path Synopsis
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------

Jump to

Keyboard shortcuts

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