db

package
v0.0.0-...-33a1497 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connections

type Connections struct {
	Context context.Context
	// contains filtered or unexported fields
}
var Conn *Connections

func (*Connections) ClosePostgreSQL

func (c *Connections) ClosePostgreSQL() *sql.DB

func (*Connections) GetMongoDatabase

func (c *Connections) GetMongoDatabase() string

func (*Connections) GetMongoTemplate

func (c *Connections) GetMongoTemplate() *mongo.Client

func (*Connections) GetPgsqTemplate

func (c *Connections) GetPgsqTemplate() *gorm.DB

func (*Connections) InitializeDatabases

func (c *Connections) InitializeDatabases(conf *properties.Properties)

func (*Connections) InitializeTestDatabases

func (c *Connections) InitializeTestDatabases(p *properties.Properties)

type MongoDatabase

type MongoDatabase struct {
	DatabaseName string
	Conn         *mongo.Client
}

Jump to

Keyboard shortcuts

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