@@ -81,7 +81,7 @@ func GetPostgreSQLDBClientE(subscriptionID string) (*postgresql.DatabasesClient,
8181 return & postgresqlDBClient , nil
8282}
8383
84- //GetPostgreSQLDB is a helper function that gets the database.
84+ // GetPostgreSQLDB is a helper function that gets the database.
8585// This function would fail the test if there is an error.
8686func GetPostgreSQLDB (t testing.TestingT , resGroupName string , serverName string , dbName string , subscriptionID string ) * postgresql.Database {
8787 database , err := GetPostgreSQLDBE (t , subscriptionID , resGroupName , serverName , dbName )
@@ -90,7 +90,7 @@ func GetPostgreSQLDB(t testing.TestingT, resGroupName string, serverName string,
9090 return database
9191}
9292
93- //GetPostgreSQLDBE is a helper function that gets the database.
93+ // GetPostgreSQLDBE is a helper function that gets the database.
9494func GetPostgreSQLDBE (t testing.TestingT , subscriptionID string , resGroupName string , serverName string , dbName string ) (* postgresql.Database , error ) {
9595 // Create a postgresql db client
9696 postgresqldbClient , err := GetPostgreSQLDBClientE (subscriptionID )
@@ -108,15 +108,15 @@ func GetPostgreSQLDBE(t testing.TestingT, subscriptionID string, resGroupName st
108108 return & postgresqlDb , nil
109109}
110110
111- //ListPostgreSQLDB is a helper function that gets all databases per server.
111+ // ListPostgreSQLDB is a helper function that gets all databases per server.
112112func ListPostgreSQLDB (t testing.TestingT , subscriptionID string , resGroupName string , serverName string ) []postgresql.Database {
113113 dblist , err := ListPostgreSQLDBE (t , subscriptionID , resGroupName , serverName )
114114 require .NoError (t , err )
115115
116116 return dblist
117117}
118118
119- //ListPostgreSQLDBE is a helper function that gets all databases per server.
119+ // ListPostgreSQLDBE is a helper function that gets all databases per server.
120120func ListPostgreSQLDBE (t testing.TestingT , subscriptionID string , resGroupName string , serverName string ) ([]postgresql.Database , error ) {
121121 // Create a postgresql db client
122122 postgresqldbClient , err := GetPostgreSQLDBClientE (subscriptionID )
0 commit comments