cockroach

package
v0.0.0-...-a0d1ad3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

func IsNotFound

func IsNotFound(err error) bool

IsNotFound Returns true if not found.

func NewRoach

func NewRoach() *roach

NewRoach ...

Types

type DB

type DB interface {
	// Dial Call the configuration file to initialize and connect to the database,
	// If the connection is incorrect, a custom error is returned.
	// If the connection fails, there will be a 10second retry connection time.
	Dial() error

	// Create a database method for hvxctl to create a DB when building the environment.
	Create(name string) error
}

Jump to

Keyboard shortcuts

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