mysql

package
v0.0.0-...-388d6c9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mysql provides a MySQL client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gorm.DB
}

Client is a MySQL client.

func New

func New(c *configs.MySQLConfig) *Client

New returns a new MySQL client.

func (*Client) GetDB

func (c *Client) GetDB() *gorm.DB

GetDB returns the underlying gorm.DB.

Jump to

Keyboard shortcuts

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