database

package
v0.0.0-...-7b79891 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	DB *gorm.DB
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(cfg *config.Config, log *zap.Logger) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close() error

func (*Connection) IsMySQL

func (c *Connection) IsMySQL() bool

func (*Connection) IsPostgres

func (c *Connection) IsPostgres() bool

func (*Connection) IsSQLiteLike

func (c *Connection) IsSQLiteLike() bool

func (*Connection) Type

func (c *Connection) Type() string

Jump to

Keyboard shortcuts

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