DBConnector

package
v0.0.0-...-344e952 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close_DBConnection

func Close_DBConnection(db *sql.DB)

func Execute_query

func Execute_query(db *sql.DB, query string) *sql.Rows

func Open_DBConnection

func Open_DBConnection() *sql.DB

func ReadDBConfig

func ReadDBConfig(fileName string)

Types

type DB_Con

type DB_Con struct {
	Protocol      string `json:"protocol"`
	Host          string `json:"host"`
	Port          string `json:"port"`
	Db_name       string `json:"db_name"`
	Db_username   string `json:"db_username"`
	Db_password   string `json:"db_password"`
	Db_connection string `json:"db_connection"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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