dao

package
v0.0.0-...-1fffc49 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DRIVER_MYSQL = "mysql"

Variables

View Source
var ArticleDao = newArticleDao()
View Source
var ArticleTagDao = newArticleTagDao()
View Source
var CommentDao = newCommentDao()
View Source
var FavoriteDao = newFavoriteDao()
View Source
var LinkDao = newLinkDao()
View Source
var NodeDao = newNodeDao()
View Source
var RecordDao = newRecordDao()
View Source
var SettingDao = newSettingDao()
View Source
var TagDao = newTagDao()
View Source
var TopicDao = newTopicDao()
View Source
var TopicLikeDao = newTopicLikeDao()
View Source
var TopicTagDao = newTopicTagDao()
View Source
var UserDao = newUserDao()
View Source
var UserScoreDao = newUserScoreDao()
View Source
var UserScoreLogDao = newUserScoreLogDao()
View Source
var UserWatchDao = newUserWatchDao()

Functions

func DB

func DB() *gorm.DB

GetDb - get a database connection

func Setup

func Setup() errors.WTError

Setup : Connect to mysql database

func Shutdown

func Shutdown() errors.WTError

Shutdown - close database connection

func Tx

func Tx(db *gorm.DB, txFunc func(tx *gorm.DB) errors.WTError) (err errors.WTError)

事务环绕

Types

This section is empty.

Jump to

Keyboard shortcuts

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