mssqlconn

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

README

mssqlconn

A module for creating and configuring a connection pool to an MS SQL Server database more easily and neatly.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConnector

type DBConnector interface {
	OpenConn() *sql.DB
}

type DBConnectorBuilder

type DBConnectorBuilder interface {
	SetHostname(hostname string) DBConnectorBuilder

	SetPort(port int) DBConnectorBuilder

	SetInstance(instance string) DBConnectorBuilder

	SetDatabaseName(dbname string) DBConnectorBuilder

	SetCredentials(user string, password string) DBConnectorBuilder

	EnableDebug() DBConnectorBuilder

	Build() DBConnector
}

func NewBuilder

func NewBuilder() DBConnectorBuilder

NewBuiler returns a DBConnecterBuilder that you can configure to build a database connector that can open a database connection.

Directories

Path Synopsis
This is only a handy package to test an actual connection to a database.
This is only a handy package to test an actual connection to a database.

Jump to

Keyboard shortcuts

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