sdkgorm

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormDB

func NewGormDB(name, prefix string) *gormDB

Types

type GormDBType

type GormDBType int
const (
	GormDBTypeMySQL GormDBType = iota + 1
	GormDBTypePostgres
	GormDBTypeSQLite
	GormDBTypeMSSQL
	GormDBTypeNotSupported
)

type GormOpt

type GormOpt struct {
	Uri                   string
	Prefix                string
	DBType                string
	PingInterval          int // in seconds
	MaxOpenConnections    int
	MaxIdleConnections    int
	MaxConnectionIdleTime int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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