gateway

package
v0.0.0-...-d3349d2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 28 Imported by: 11

Documentation

Index

Constants

View Source
const MYSQL_ER_DUP_ENTRY = 1062
View Source
const MYSQL_ER_NO_REFERENCED_ROW_2 = 1452
View Source
const SQLITE_CONSTRAINT_PRIMARYKEY = 1555
View Source
const SQLITE_CONSTRAINT_UNIQUE = 2067

Variables

This section is empty.

Functions

func ConvertDuplicatedError

func ConvertDuplicatedError(err error, newErr error) error

func ConvertRelationError

func ConvertRelationError(err error, newErr error) error

func MetricsServerProcess

func MetricsServerProcess(ctx context.Context, port int, gracefulShutdownTimeSec int) error

func MigrateMySQLDB

func MigrateMySQLDB(db *gorm.DB, sqlFS embed.FS) error

func MigrateSQLiteDB

func MigrateSQLiteDB(db *gorm.DB, sqlFS embed.FS) error

func OpenMySQL

func OpenMySQL(username, password, host string, port int, database string) (*gorm.DB, error)

func OpenSQLite

func OpenSQLite(filePath string) (*gorm.DB, error)

func SignalWatchProcess

func SignalWatchProcess(ctx context.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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