miningdb

package
v0.0.86 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatcherDBApp

type WatcherDBApp struct {
}

WatcherDBApp is the database application.

func (*WatcherDBApp) IsEmpty

func (e *WatcherDBApp) IsEmpty(db *gorm.DB) bool

IsEmpty check if a given database is empty.

func (*WatcherDBApp) Models

func (e *WatcherDBApp) Models() []interface{}

Models returns the models for a given database app.

func (*WatcherDBApp) PostReset

func (e *WatcherDBApp) PostReset(tx *gorm.DB) error

PostReset is executed after db is reset.

func (*WatcherDBApp) PreReset

func (e *WatcherDBApp) PreReset(tx *gorm.DB) error

PreReset is executed before db is reset.

Jump to

Keyboard shortcuts

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