exconn

package
v0.0.0-...-16159b0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_QUERY = "INSERT INTO"
)

Variables

This section is empty.

Functions

func CloseConnectionMySQL

func CloseConnectionMySQL(db *gorm.DB)

func CloseConnectionPostgres

func CloseConnectionPostgres(db *gorm.DB)

func ComposeConnectionFromEnv

func ComposeConnectionFromEnv(connection interface{}, vendor string) string

func ConnectToCassandra

func ConnectToCassandra() *gocql.Session

func ConnectToMongo

func ConnectToMongo() context.Context

func ConnectToMySQL

func ConnectToMySQL() *gorm.DB

func ConnectToPostgres

func ConnectToPostgres() *gorm.DB

func GetAdditionalDbConnectionParams

func GetAdditionalDbConnectionParams(connectionParams map[string]interface{}) string

Types

type CassandraLog

type CassandraLog struct {
	Session  *gocql.Session
	LogQuery string
}

func InstantiateCassandraLog

func InstantiateCassandraLog() CassandraLog

func (*CassandraLog) SendLog

func (cl *CassandraLog) SendLog(input []string) bool

Jump to

Keyboard shortcuts

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