mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 09:35:38 -05:00
Added missing properties for databases and server (#373)
* added get database info to admin service * refactored code to be inline with standard * added comments to utils functions * added comments to public classes * added machine name to serverinfo from connection; added last backupdate and last log backup date to database info * removed camelcase from request type * removed the wrapper for the generic dictionary * removed unnecessary imports * merged master * changed datetime compare to equality operator * added database compatability level to info * renamed field * fixed CompatibilityLevel string typo, added bakcup dates to capabilities list
This commit is contained in:
@@ -32,6 +32,9 @@ namespace Microsoft.SqlTools.ServiceLayer.Admin
|
||||
internal const string DatabaseContainmentType = "databaseContainmentType";
|
||||
internal const string DatabaseState = "databaseState";
|
||||
internal const string RecoveryModel = "recoveryModel";
|
||||
internal const string CompatibilityLevel = "compatibilityLevel";
|
||||
internal const string LastBackupDate = "lastBackupDate";
|
||||
internal const string LastLogBackupDate = "lastLogBackupDate";
|
||||
internal const string FileGroupType = "fileGroupType";
|
||||
internal const string IsDefault = "isDefault";
|
||||
internal const string IsFileStream = "isFileStream";
|
||||
@@ -205,6 +208,33 @@ namespace Microsoft.SqlTools.ServiceLayer.Admin
|
||||
GroupName = "Other"
|
||||
},
|
||||
new ServiceOption
|
||||
{
|
||||
Name = AdminServicesProviderOptionsHelper.LastBackupDate,
|
||||
DisplayName = "LastBackupDate",
|
||||
Description = "Last backup date",
|
||||
ValueType = ServiceOption.ValueTypeString,
|
||||
IsRequired = false,
|
||||
GroupName = "Other"
|
||||
},
|
||||
new ServiceOption
|
||||
{
|
||||
Name = AdminServicesProviderOptionsHelper.LastLogBackupDate,
|
||||
DisplayName = "LastLogBackupDate",
|
||||
Description = "Last log backup date",
|
||||
ValueType = ServiceOption.ValueTypeString,
|
||||
IsRequired = false,
|
||||
GroupName = "Other"
|
||||
},
|
||||
new ServiceOption
|
||||
{
|
||||
Name = AdminServicesProviderOptionsHelper.CompatibilityLevel,
|
||||
DisplayName = "CompatibilityLevel",
|
||||
Description = "Compatibility level",
|
||||
ValueType = ServiceOption.ValueTypeString,
|
||||
IsRequired = false,
|
||||
GroupName = "Other"
|
||||
},
|
||||
new ServiceOption
|
||||
{
|
||||
Name = AdminServicesProviderOptionsHelper.FileGroups,
|
||||
DisplayName = "File Groups",
|
||||
|
||||
Reference in New Issue
Block a user