-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compartment indexing and TVP generator codegen (#457)
- Loading branch information
1 parent
5a0b402
commit 8583c70
Showing
19 changed files
with
797 additions
and
169 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
17 changes: 17 additions & 0 deletions
17
...th.Fhir.SqlServer/Features/Schema/Model/IStoredProcedureTableValuedParametersGenerator.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,17 @@ | ||
// ------------------------------------------------------------------------------------------------- | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. | ||
// ------------------------------------------------------------------------------------------------- | ||
|
||
namespace Microsoft.Health.Fhir.SqlServer.Features.Schema.Model | ||
{ | ||
/// <summary> | ||
/// Generates the full set of table-valued parameters for a stored procedure. | ||
/// </summary> | ||
/// <typeparam name="TInput">The type of the input</typeparam> | ||
/// <typeparam name="TOutput">The type of the output. Intended to be a struct with properties for each TVP</typeparam> | ||
internal interface IStoredProcedureTableValuedParametersGenerator<in TInput, out TOutput> | ||
{ | ||
TOutput Generate(TInput input); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...icrosoft.Health.Fhir.SqlServer/Features/Schema/Model/ITableValuedParameterRowGenerator.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 @@ | ||
// ------------------------------------------------------------------------------------------------- | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. | ||
// ------------------------------------------------------------------------------------------------- | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.Health.Fhir.SqlServer.Features.Schema.Model | ||
{ | ||
/// <summary> | ||
/// Generates a sequence of row structs for a table-valued parameter. | ||
/// </summary> | ||
/// <typeparam name="TInput">The input type</typeparam> | ||
/// <typeparam name="TRow">The row struct type</typeparam> | ||
internal interface ITableValuedParameterRowGenerator<in TInput, out TRow> | ||
where TRow : struct | ||
{ | ||
IEnumerable<TRow> GenerateRows(TInput input); | ||
} | ||
} |
Oops, something went wrong.