mssql

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GormMssql

func GormMssql(iniSection, PasswordDecryptionKey string) (*gorm.DB, error)

GormMssql 初始化数据库。 参数PasswordDecryptionKey密码解密密钥,密钥为空时表示配置文件中的密码是明文. 密码加密是用 encrypt.TripleDesDecrypt 进行加密的 / 需要用一个toml类型的配置文件: config.toml

func GormMssqlByDSN

func GormMssqlByDSN(dsn string) (*gorm.DB, error)

GormMssqlByDSN 根据DSN初始化数据库

Types

This section is empty.

Jump to

Keyboard shortcuts

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