Documentation ¶
Overview ¶
Package sql tests basic functionality for an existing mssql db
Index ¶
- func CreateDB(ctx context.Context, serverName, dbName string) (db sql.Database, err error)
- func CreateFirewallRules(ctx context.Context, serverName string) error
- func CreateServer(ctx context.Context, serverName, dbLogin, dbPassword string) (server sql.Server, err error)
- func CreateTable(db *sql.DB) error
- func DeleteDB(ctx context.Context, serverName, dbName string) (autorest.Response, error)
- func Insert(db *sql.DB) error
- func Open(server, database, username, password string) (*sql.DB, error)
- func PrintInfo()
- func Query(db *sql.DB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFirewallRules ¶
CreateFirewallRules creates new firewall rules for a given server
func CreateServer ¶
func CreateServer(ctx context.Context, serverName, dbLogin, dbPassword string) (server sql.Server, err error)
CreateServer creates a new SQL Server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.