db

package
v0.0.0-...-833a7b1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSql

type BaseSql struct {
	Url    string
	Engine *xorm.Engine
	// contains filtered or unexported fields
}

func (*BaseSql) CheckMigrate

func (sql *BaseSql) CheckMigrate()

func (*BaseSql) InitDB

func (sql *BaseSql) InitDB()

func (*BaseSql) Write

func (sql *BaseSql) Write(p []byte) (n int, err error)

type DBVersion

type DBVersion struct {
	Version int32
}

type MySqlDb

type MySqlDb interface {
	// init db connection
	InitDB()

	// get db version for migrate
	CheckMigrate()
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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