database

package module
v0.0.0-...-6330d4c Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SQL *sql.DB

Functions

This section is empty.

Types

type Clickhouse

type Clickhouse struct {
	SQLConnection
}

type MongoDB

type MongoDB struct {
	SQLConnection
}

type MySQL

type MySQL struct {
	SQLConnection
}

func (*MySQL) Connec

func (m *MySQL) Connec() (*sql.DB, error)

Connect to database

type PostgreSQL

type PostgreSQL struct {
	SQLConnection
}

func (*PostgreSQL) Connect

func (p *PostgreSQL) Connect() (*sql.DB, error)

Connect to database

type SQLConnection

type SQLConnection struct {
	DB_HOST     string
	DB_PORT     string
	DB_NAME     string
	DB_USER     string
	DB_PASSWORD string
}

Jump to

Keyboard shortcuts

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