mariadb

package
v0.0.0-...-5f67f9a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mariadb *

  • @Time: 2021/8/11 10:58 上午
  • @Author: Haibo Jiang
  • @Email: haibojiang@bitorobotics.ltd
  • @File: sql_logger.go
  • @Version: V0.0.1
  • @license: (C) Copyright 2017-2030, Bito Robotics Co.Ltd.
  • @desc:

*

Index

Constants

This section is empty.

Variables

View Source
var (
	DbConnect *gorm.DB
	DbErr     error
	SqlDb     *sql.DB
)

Functions

func CloseConnect

func CloseConnect() error

func GetConnect

func GetConnect() *gorm.DB

func NewConnect

func NewConnect(skipDefaultTransaction bool) *gorm.DB

Types

type SQLLogger

type SQLLogger struct {
	// contains filtered or unexported fields
}

func NewSQLLogger

func NewSQLLogger() *SQLLogger

func (*SQLLogger) Printf

func (s *SQLLogger) Printf(format string, v ...interface{})

Printf 实现gorm/logger.Writer接口

Jump to

Keyboard shortcuts

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