database

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(client *gorm.DB) error

func Connect

func Connect(_ context.Context, connCfg *ConnConfig, gormCfg *gorm.Config) (*gorm.DB, error)

func Ping

func Ping(ctx context.Context, client *gorm.DB) error

Types

type ConnConfig

type ConnConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	Database string
	SSLMode  bool
}

Jump to

Keyboard shortcuts

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