-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from RevealBi/dsi-refactor
added new data source objects
- Loading branch information
Showing
35 changed files
with
523 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Reveal.Sdk.Dom/Data/DataSources/AmazonAthenaDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class AmazonAthenaDataSource : DatabaseSource | ||
{ | ||
public AmazonAthenaDataSource() | ||
{ | ||
Provider = DataSourceProvider.AmazonAthena; | ||
} | ||
|
||
[JsonIgnore] | ||
public string DataCatalog { get; set; } | ||
|
||
[JsonIgnore] | ||
public string OutputLocation { get; set; } | ||
|
||
[JsonIgnore] | ||
public string Region { get; set; } | ||
|
||
[JsonIgnore] | ||
public string Workgroup { get; set; } | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Reveal.Sdk.Dom/Data/DataSources/AmazonRedshiftDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Newtonsoft.Json; | ||
using Reveal.Sdk.Dom.Core.Extensions; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class AmazonRedshiftDataSource : HostDatabaseSource | ||
{ | ||
public AmazonRedshiftDataSource() | ||
{ | ||
Provider = DataSourceProvider.AmazonRedshift; | ||
} | ||
|
||
[JsonIgnore] | ||
public string Schema | ||
{ | ||
get => Properties.GetValue<string>("Schema"); | ||
set => Properties.SetItem("Schema", value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class AmazonS3DataSource : DataSource | ||
{ | ||
public AmazonS3DataSource() | ||
{ | ||
Provider = DataSourceProvider.AmazonS3; | ||
} | ||
|
||
[JsonIgnore] | ||
public string AccountId { get; set; } | ||
|
||
[JsonIgnore] | ||
public string Region { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class BoxDataSource : DataSource | ||
{ | ||
public BoxDataSource() | ||
{ | ||
Provider = DataSourceProvider.Box; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class DropboxDataSource : DataSource | ||
{ | ||
public DropboxDataSource() | ||
{ | ||
Provider = DataSourceProvider.Dropbox; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Reveal.Sdk.Dom/Data/DataSources/GoogleAnalytics4DataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class GoogleAnalytics4DataSource : DataSource | ||
{ | ||
public GoogleAnalytics4DataSource() | ||
{ | ||
Provider = DataSourceProvider.GoogleAnalytics4; | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Reveal.Sdk.Dom/Data/DataSources/GoogleBigQueryDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class GoogleBigQueryDataSource : DatabaseSource | ||
{ | ||
public GoogleBigQueryDataSource() | ||
{ | ||
Provider = DataSourceProvider.GoogleBigQuery; | ||
} | ||
|
||
[JsonIgnore] | ||
public string ProjectId { get; set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Reveal.Sdk.Dom/Data/DataSources/GoogleDriveDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class GoogleDriveDataSource : DataSource | ||
{ | ||
public GoogleDriveDataSource() | ||
{ | ||
Provider = DataSourceProvider.GoogleDrive; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Reveal.Sdk.Dom/Data/DataSources/GoogleSheetsDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class GoogleSheetsDataSource : DataSource | ||
{ | ||
public GoogleSheetsDataSource() | ||
{ | ||
Provider = DataSourceProvider.GoogleSheets; | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Reveal.Sdk.Dom/Data/DataSources/MicrosoftAnalysisServicesDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class MicrosoftAnalysisServicesDataSource : DataSource | ||
{ | ||
public MicrosoftAnalysisServicesDataSource() | ||
{ | ||
Provider = DataSourceProvider.MicrosoftAnalysisServices; | ||
} | ||
|
||
[JsonIgnore] | ||
public string Catalog { get; set; } | ||
|
||
[JsonIgnore] | ||
public string Host { get; set; } | ||
|
||
[JsonIgnore] | ||
public int Port { get; set; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Reveal.Sdk.Dom/Data/DataSources/MicrosoftAzureAnalysisServicesDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class MicrosoftAzureAnalysisServicesDataSource : MicrosoftAnalysisServicesDataSource | ||
{ | ||
public MicrosoftAzureAnalysisServicesDataSource() | ||
{ | ||
Provider = DataSourceProvider.MicrosoftAzureAnalysisServices; | ||
} | ||
|
||
[JsonIgnore] | ||
public string ServerUrl { get; set; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Reveal.Sdk.Dom/Data/DataSources/MicrosoftAzureSqlServerDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class MicrosoftAzureSqlServerDataSource : MicrosoftSqlServerDataSource | ||
{ | ||
public MicrosoftAzureSqlServerDataSource() | ||
{ | ||
Provider = DataSourceProvider.MicrosoftAzureSqlServer; | ||
} | ||
|
||
[JsonIgnore] | ||
public bool TrustServerCertificate { get; set; } //todo: implement | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Reveal.Sdk.Dom/Data/DataSources/MicrosoftAzureSynapseAnalyticsDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class MicrosoftAzureSynapseAnalyticsDataSource : MicrosoftAzureSqlServerDataSource | ||
{ | ||
public MicrosoftAzureSynapseAnalyticsDataSource() | ||
{ | ||
Provider = DataSourceProvider.MicrosoftAzureSynapseAnalytics; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Reveal.Sdk.Dom/Data/DataSources/MicrosoftOneDriveDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class MicrosoftOneDriveDataSource : DataSource | ||
{ | ||
public MicrosoftOneDriveDataSource() | ||
{ | ||
Provider = DataSourceProvider.MicrosoftOneDrive; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Reveal.Sdk.Dom/Data/DataSources/MicrosoftSharePointDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class MicrosoftSharePointDataSource : DataSource | ||
{ | ||
public MicrosoftSharePointDataSource() | ||
{ | ||
Provider = DataSourceProvider.MicrosoftSharePoint; | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Reveal.Sdk.Dom/Data/DataSources/MicrosoftSqlServerDataSource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Newtonsoft.Json; | ||
using Reveal.Sdk.Dom.Core.Extensions; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
public class MicrosoftSqlServerDataSource : SchemaDatabaseSource | ||
{ | ||
public MicrosoftSqlServerDataSource() | ||
{ | ||
Provider = DataSourceProvider.MicrosoftSqlServer; | ||
} | ||
|
||
[JsonIgnore] | ||
public bool Encrypt | ||
{ | ||
get => Properties.GetValue<bool>("Encrypt"); | ||
set => Properties.SetItem("Encrypt", value); | ||
} | ||
|
||
internal static MicrosoftSqlServerDataSource Create(DataSource dataSource) | ||
{ | ||
return new MicrosoftSqlServerDataSource() | ||
{ | ||
Id = dataSource.Id, | ||
Title = dataSource.Title, | ||
Subtitle = dataSource.Subtitle, | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Newtonsoft.Json; | ||
using Reveal.Sdk.Dom.Core.Extensions; | ||
|
||
namespace Reveal.Sdk.Dom.Data | ||
{ | ||
internal class MongoDBDataSource : DatabaseSource | ||
{ | ||
public MongoDBDataSource() | ||
{ | ||
Provider = DataSourceProvider.MongoDB; | ||
} | ||
|
||
[JsonIgnore] | ||
public string ConnectionString { get; set; } | ||
|
||
[JsonIgnore] | ||
public bool ProcessDataOnServerDefaultValue | ||
{ | ||
get => Properties.GetValue<bool>("ServerAggregationDefault"); | ||
set => Properties.SetItem("ServerAggregationDefault", value); | ||
} | ||
|
||
[JsonIgnore] | ||
public bool ProcessDataOnServerReadOnly | ||
{ | ||
get => Properties.GetValue<bool>("ServerAggregationReadOnly"); | ||
set => Properties.SetItem("ServerAggregationReadOnly", value); | ||
} | ||
} | ||
} |
Oops, something went wrong.