db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*gorm.DB
	// contains filtered or unexported fields
}

func New

func New() *Service

New 创建 DB

func (*Service) GormDB

func (s *Service) GormDB() *gorm.DB

GormDB 获取 gorm DB

func (*Service) Init

func (s *Service) Init(args ...services.Service) services.Service

Init 服务初始化

func (*Service) SqlDB

func (s *Service) SqlDB() (*sql.DB, error)

SqlDB 获取 sql DB

Jump to

Keyboard shortcuts

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