Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect( endpoint sqlconfig.Endpoint, user *sqlconfig.User, console sqlcmd.Console, ) *sqlcmd.Sqlcmd
Connect is used to connect to a SQL Server using the specified endpoint and user details. The console parameter is used to output messages during the connection process. The function returns a Sqlcmd instance that can be used to run SQL commands on the server.
func Initialize ¶
func Query ¶
Query is helper function that allows running a given SQL query on a provided sqlcmd.Sqlcmd object. It takes the sqlcmd.Sqlcmd object and the query text as inputs, and runs the query using the Run method of the sqlcmd.Sqlcmd object. It sets the standard output and standard error to be the same as the current process, and returns the error if any occurred during the execution of the query.
Types ¶
This section is empty.