db

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

* @Author: SpenserCai * @Date: 2023-08-30 21:21:40 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-14 14:55:00 * @Description: file content

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotDb

type BotDb struct {
	Db *gorm.DB
}

func NewBotDb

func NewBotDb(dbCfg *config.DbConfig) (*BotDb, error)

func (*BotDb) Close

func (botDb *BotDb) Close() error

func (*BotDb) CreateOrUpdateDb

func (botDb *BotDb) CreateOrUpdateDb() error

Directories

Path Synopsis
* @Author: SpenserCai * @Date: 2023-08-31 00:44:10 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-18 21:43:21 * @Description: file content
* @Author: SpenserCai * @Date: 2023-08-31 00:44:10 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-18 21:43:21 * @Description: file content

Jump to

Keyboard shortcuts

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