-
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 #17 from cortside/issue-16
[ISSUE-16] add support for multiple resultsets from report procs
- Loading branch information
Showing
181 changed files
with
3,863 additions
and
2,170 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# cortside.webapistarter | ||
# cortside.sqlreport | ||
|
||
SqlReport is an RESTful api service that exposes presetup stored procedures as minimalistic reports that can be viewed or exported. Reports can be tied to permissons through authorization service so that users can only see what is granted. | ||
|
||
# Pre-Requisites | ||
* .NET 3.1 SDK | ||
* Visual Studio 2019 | ||
* .NET 6.0 SDK | ||
* Visual Studio 2022 | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$tables = @("Subject", "Widget") | ||
|
||
foreach ($table in $tables) { | ||
echo "exporting $table..." | ||
$sql = "SELECT * FROM SqlReportApi.dbo.$table" | ||
$filename = "src\\Cortside.SqlReportApi.WebApi.IntegrationTests\\SeedData\\$table.csv" | ||
Invoke-Sqlcmd -Query $sql -HostName localhost | Export-Csv -Path $filename -NoTypeInformation | ||
} |
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,28 @@ | ||
Function Global:Get-ProjectInSolution { | ||
[CmdletBinding()] param ( | ||
[Parameter()][string]$Solution | ||
) | ||
$SolutionPath = Join-Path (Get-Location) $Solution | ||
$SolutionFile = Get-Item $SolutionPath | ||
$SolutionFolder = $SolutionFile.Directory.FullName | ||
|
||
Get-Content $Solution | | ||
Select-String 'Project\(' | | ||
ForEach-Object { | ||
$projectParts = $_ -Split '[,=]' | ForEach-Object { $_.Trim('[ "{}]') } | ||
[PSCustomObject]@{ | ||
File = $projectParts[2] | ||
Guid = $projectParts[3] | ||
Name = $projectParts[1] | ||
} | ||
} | | ||
Where-Object File -match "csproj$" | | ||
ForEach-Object { | ||
Add-Member -InputObject $_ -NotePropertyName FullName -NotePropertyValue (Join-Path $SolutionFolder $_.File) -PassThru | ||
} | ||
} | ||
|
||
Get-ProjectInSolution ./src/Cortside.SqlReportApi.sln | select-object Fullname | sort > projects.txt | ||
|
||
gci *.csproj -r | select-object fullname | %{ $in = Select-String -Path .\projects.txt -SimpleMatch $_.FullName; if ($in -eq $null) { echo $_ } } | ||
|
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 @@ | ||
./clean.ps1 | ||
|
||
./convert-encoding.ps1 -filePaths ((gci *.ps1 -Recurse) | % { $_.FullName }) | ||
./convert-encoding.ps1 -filePaths ((gci *.cs -Recurse) | % { $_.FullName }) | ||
./convert-encoding.ps1 -filePaths ((gci *.csproj -Recurse) | % { $_.FullName }) | ||
./convert-encoding.ps1 -filePaths ((gci *.json -Recurse) | % { $_.FullName }) | ||
./convert-encoding.ps1 -filePaths ((gci *.sln -Recurse) | % { $_.FullName }) | ||
./convert-encoding.ps1 -filePaths ((gci *.sql -Recurse) | % { $_.FullName }) | ||
|
||
git status |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Format code to match editorconfig settings | ||
# Format code to match editorconfig settings | ||
dotnet format --verbosity normal .\src |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Param | ||
( | ||
[Parameter(Mandatory = $false)][switch]$remote | ||
) | ||
|
||
# garbage collect | ||
git gc --aggressive | ||
|
||
# update local list of pruned branches on the remote to local: | ||
git fetch --prune | ||
|
||
if ($remote.IsPresent) { | ||
# delete branches on remote origin that have been merge to master | ||
git branch --merged remotes/origin/master -r | %{$_.trim().replace('origin/', '')} | ?{$_ -notmatch 'master'} | ?{$_ -notmatch 'develop'} | ?{$_ -notmatch 'release/*'} | %{ "delete remote $_"; git push --delete origin $_ } | ||
} else { | ||
# delete local branches that have been merged to master | ||
git branch --merged remotes/origin/master | %{$_.trim()} | ?{$_ -notmatch 'master'} | ?{$_ -notmatch 'develop'} | ?{$_ -notmatch 'release/*'} | %{ "delete local $_"; git branch -d $_ } | ||
} | ||
|
||
# remove stale refs (local refs to branches that are gone on the remote) | ||
git remote prune origin | ||
|
||
# garbage collect | ||
git gc --aggressive |
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,16 @@ | ||
$fail = $false | ||
|
||
#$env:RESTRICTED_WORDS="comma,separated,list" | ||
$words =$($env:RESTRICTED_WORDS).Split(",") | ||
$words |%{ | ||
& grep -R -i "$_" * |% { $_; $fail = $true } | ||
} | ||
|
||
$textFiles = git grep -Il . | ||
git ls-files | where { $textFiles -notcontains $_ } | % { $_; $fail = $true } | ||
|
||
if ($fail) { | ||
throw "Found restricted words or unexpected binary files" | ||
} | ||
|
||
echo "prebuild check succeeded" |
Oops, something went wrong.