connect

package module
v0.0.0-...-bab55df Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 7 Imported by: 0

README

apps-util-connect

Helper functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HANA

func HANA(dsn string) (*sqlx.DB, error)

"hdb://<user name>:<password>@<server name>:<port>" Calling code should handle error.

func HANAMust

func HANAMust(dsn string) *sqlx.DB

func HANAMustWithKey

func HANAMustWithKey(key string, dsn string) *sqlx.DB

func HANAWithKey

func HANAWithKey(key string, dsn string) (*sqlx.DB, error)

func MSSQL

func MSSQL(dsn string) (*sqlx.DB, error)

"server=<server name>;user id=<user name>;password=<password>;port=1433;database=<database name>;encrypt=disable" Calling code should handle error.

func MSSQLMust

func MSSQLMust(dsn string) *sqlx.DB

func MSSQLMustWithKey

func MSSQLMustWithKey(key string, dsn string) *sqlx.DB

func MSSQLWithKey

func MSSQLWithKey(key string, dsn string) (*sqlx.DB, error)

func Oracle

func Oracle(dsn string) (*sqlx.DB, error)

"<user name>/<password>@<server name>:1521/<service name>" Calling code should handle error.

func OracleMust

func OracleMust(dsn string) *sqlx.DB

func OracleMustWithKey

func OracleMustWithKey(key string, dsn string) *sqlx.DB

func OracleWithKey

func OracleWithKey(key string, dsn string) (*sqlx.DB, error)

func Postgres

func Postgres(dsn string) (*sqlx.DB, error)

"host=<server name> user=<user name> dbname=<database name> password=<password> sslmode=disable port=5432" Calling code should handle error.

func PostgresMust

func PostgresMust(dsn string) *sqlx.DB

func PostgresMustWithKey

func PostgresMustWithKey(key string, dsn string) *sqlx.DB

func PostgresWithKey

func PostgresWithKey(key string, dsn string) (*sqlx.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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