database

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDatabase

func ConnectDatabase(dsn string) (*sql.DB, error)

ConnectDatabase use dsn and database's configs to connect to db.

func FormatDSN

func FormatDSN(username string, password string, host string, port int, database string) string

FormatDSN generates dataSourceName.

Types

This section is empty.

Jump to

Keyboard shortcuts

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