Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MSSQLClient ¶
type MSSQLClient struct{}
Client is a client for MS SQL database.
Internally client uses denisenkom/go-mssqldb driver.
func (*MSSQLClient) Connect ¶
Connect connects to MS SQL database using given credentials.
If connection is successful, it returns true. If connection is unsuccessful, it returns false and error.
The connection is closed after the function returns.
func (*MSSQLClient) ConnectWithDB ¶
func (c *MSSQLClient) ConnectWithDB(host string, port int, username, password, dbName string) (bool, error)
ConnectWithDB connects to MS SQL database using given credentials and database name.
If connection is successful, it returns true. If connection is unsuccessful, it returns false and error.
The connection is closed after the function returns.
Click to show internal directories.
Click to hide internal directories.