persistence

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseColumn

type BaseColumn struct {
	CreatedAt time.Time  `gorm:"column:created_at"`
	UpdatedAt time.Time  `gorm:"column:updated_at"`
	DeletedAt *time.Time `gorm:"column:deleted_at"`
}

gorm.Model definition

type DatabaseInfomation

type DatabaseInfomation struct {
	BaseColumn
	DatabaseName    string `gorm:"column:database_name"`
	LocalPeerId     string `gorm:"column:local_peer_id"`
	GlobalClockTime int64  `gorm:"column:global_clock_time"`
}

Database information_schema definition

type TableInfomation

type TableInfomation struct {
	BaseColumn
	TableName string `gorm:"column:table_name"`
	ClockTime int64  `gorm:"column:peer_id"`
	Version   int64  `gorm:"column:version"`
	Schema    string `gorm:"column:schema"` // Create the sql statement of the table

}

Table information_schema definition

Jump to

Keyboard shortcuts

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