dbc

package
v0.0.0-...-2327e9c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBClient

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

func GetDBClient

func GetDBClient() *DBClient

func (*DBClient) Configure

func (dbc *DBClient) Configure(v any)

func (*DBClient) Connect

func (dbc *DBClient) Connect()

func (*DBClient) CreateDatabase

func (dbc *DBClient) CreateDatabase() error

func (*DBClient) DropDatabase

func (dbc *DBClient) DropDatabase() error

func (*DBClient) InitDBConnection

func (dbc *DBClient) InitDBConnection()

func (*DBClient) InitServerConnection

func (dbc *DBClient) InitServerConnection()

func (*DBClient) IsSilent

func (dbc *DBClient) IsSilent() bool

func (*DBClient) Name

func (dbc *DBClient) Name() string

func (*DBClient) Ping

func (dbc *DBClient) Ping() error

func (*DBClient) ResolveDriver

func (dbc *DBClient) ResolveDriver()

func (*DBClient) ResolveServerDriver

func (dbc *DBClient) ResolveServerDriver()

func (*DBClient) SetSilent

func (dbc *DBClient) SetSilent(val bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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