new drop object request (#22387)

* simplify drop object requests

* update sts

* pr comments
This commit is contained in:
Alan Ren
2023-03-21 10:51:55 -07:00
committed by GitHub
parent ffc7f05c10
commit 21f271671d
5 changed files with 40 additions and 86 deletions

View File

@@ -1191,12 +1191,6 @@ declare module 'mssql' {
* @param login The login information.
*/
updateLogin(contextId: string, login: ObjectManagement.Login): Thenable<void>;
/**
* Delete a login.
* @param connectionUri The URI of the server connection.
* @param name Name of the login.
*/
deleteLogin(connectionUri: string, name: string): Thenable<void>;
/**
* Dispose the login view.
* @param contextId The id of the view.
@@ -1218,18 +1212,11 @@ declare module 'mssql' {
*/
createUser(contextId: string, user: ObjectManagement.User): Thenable<void>;
/**
* Create a login.
* Update a user.
* @param contextId Id of the view.
* @param user The user information.
*/
updateUser(contextId: string, user: ObjectManagement.User): Thenable<void>;
/**
* Create a login.
* @param connectionUri The URI of the server connection.
* @param database Name of the database.
* @param name Name of the user.
*/
deleteUser(connectionUri: string, database: string, name: string): Thenable<void>;
/**
* Dispose the user view.
* @param contextId The id of the view.
@@ -1238,10 +1225,16 @@ declare module 'mssql' {
/**
* Rename an object.
* @param connectionUri The URI of the server connection.
* @param objectUrn Urn of the object to be renamed. More information: https://learn.microsoft.com/en-us/sql/relational-databases/server-management-objects-smo/overview-smo.
* @param objectUrn SMO Urn of the object to be renamed. More information: https://learn.microsoft.com/sql/relational-databases/server-management-objects-smo/overview-smo
* @param newName The new name of the object.
*/
rename(connectionUri: string, objectUrn: string, newName: string): Thenable<void>;
/**
* Drop an object.
* @param connectionUri The URI of the server connection.
* @param objectUrn SMO Urn of the object to be dropped. More information: https://learn.microsoft.com/sql/relational-databases/server-management-objects-smo/overview-smo
*/
drop(connectionUri: string, objectUrn: string): Thenable<void>;
}
// Object Management - End.
}