Skip to content

Commit a109fe7

Browse files
authored
Merge pull request #11 from DbUp/xml-doc
Add XML documentation for all public members
1 parent a6ff75d commit a109fe7

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

src/dbup-redshift/RedshiftConnectionManager.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections.Generic;
1+
using System.Collections.Generic;
22
using System.Linq;
33
using System.Text.RegularExpressions;
44
using DbUp.Engine.Transactions;
@@ -20,10 +20,7 @@ public RedshiftConnectionManager(string connectionString)
2020
{
2121
}
2222

23-
/// <summary>
24-
/// Splits the statements in the script using the ";" character.
25-
/// </summary>
26-
/// <param name="scriptContents">The contents of the script to split.</param>
23+
/// <inheritdoc/>
2724
public override IEnumerable<string> SplitScriptIntoCommands(string scriptContents)
2825
{
2926
var scriptStatements =

src/dbup-redshift/RedshiftObjectParser.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using DbUp.Support;
1+
using DbUp.Support;
22

33
namespace DbUp.Redshift
44
{
@@ -7,6 +7,9 @@ namespace DbUp.Redshift
77
/// </summary>
88
public class RedshiftObjectParser : SqlObjectParser
99
{
10+
/// <summary>
11+
/// Initializes a new instance of the <see cref="RedshiftObjectParser"/> class.
12+
/// </summary>
1013
public RedshiftObjectParser() : base("\"", "\"")
1114
{
1215
}

src/dbup-redshift/RedshiftScriptExecutor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using DbUp.Engine;
44
using DbUp.Engine.Output;
@@ -30,10 +30,12 @@ public RedshiftScriptExecutor(Func<IConnectionManager> connectionManagerFactory,
3030

3131
}
3232

33+
/// <inheritdoc/>
3334
protected override string GetVerifySchemaSql(string schema)
3435
=> $@"CREATE SCHEMA IF NOT EXISTS {schema}";
3536

3637

38+
/// <inheritdoc/>
3739
protected override void ExecuteCommandsWithinExceptionHandler(int index, SqlScript script, Action excuteCommand)
3840
{
3941
try

src/dbup-redshift/RedshiftTableJournal.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using DbUp.Engine;
33
using DbUp.Engine.Output;
44
using DbUp.Engine.Transactions;
@@ -24,16 +24,19 @@ public RedshiftTableJournal(Func<IConnectionManager> connectionManager, Func<IUp
2424
{
2525
}
2626

27+
/// <inheritdoc/>
2728
protected override string GetInsertJournalEntrySql(string @scriptName, string @applied)
2829
{
2930
return $"insert into {FqSchemaTableName} (ScriptName, Applied) values ({@scriptName}, {@applied})";
3031
}
3132

33+
/// <inheritdoc/>
3234
protected override string GetJournalEntriesSql()
3335
{
3436
return $"select ScriptName from {FqSchemaTableName} order by ScriptName";
3537
}
3638

39+
/// <inheritdoc/>
3740
protected override string CreateSchemaTableSql(string quotedPrimaryKeyName)
3841
{
3942
return

src/dbup-redshift/dbup-redshift.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<Description>DbUp makes it easy to deploy and upgrade SQL Server databases. This package adds Amazon Redshift support.</Description>
@@ -12,6 +12,7 @@
1212
<Product>dbup_redshift</Product>
1313
<PackageId>dbup-redshift</PackageId>
1414
<PackageIcon>dbup-icon.png</PackageIcon>
15+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1516
</PropertyGroup>
1617

1718
<PropertyGroup Condition="'$(CI)' == 'true'">

0 commit comments

Comments
 (0)