Add local nuget package push to projects
Add where clause rewriter to TSqlLinguist
This commit is contained in:
parent
f989b59330
commit
6d6ca3f633
@ -58,4 +58,9 @@
|
|||||||
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="UploadLocalPackages" AfterTargets="CopyPackages" >
|
||||||
|
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).nupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
|
||||||
|
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).snupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -40,4 +40,9 @@
|
|||||||
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||||
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="UploadLocalPackages" AfterTargets="CopyPackages" >
|
||||||
|
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).nupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
|
||||||
|
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).snupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -9,33 +9,31 @@ namespace Connected.Data.Sql;
|
|||||||
internal sealed class TSqlLinguist : Linguist
|
internal sealed class TSqlLinguist : Linguist
|
||||||
{
|
{
|
||||||
|
|
||||||
public TSqlLinguist(ExpressionCompilationContext context, TSqlLanguage language, Translator translator)
|
public TSqlLinguist(ExpressionCompilationContext context, TSqlLanguage language, Translator translator)
|
||||||
: base(context, language, translator)
|
: base(context, language, translator)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Expression Translate(Expression expression)
|
public override Expression Translate(Expression expression)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* fix up any order-by's
|
* fix up any order-by's
|
||||||
*/
|
*/
|
||||||
expression = OrderByRewriter.Rewrite(Language, expression);
|
expression = OrderByRewriter.Rewrite(Language, expression);
|
||||||
|
|
||||||
expression = base.Translate(expression);
|
expression = base.Translate(expression);
|
||||||
/*
|
/*
|
||||||
* convert skip/take info into RowNumber pattern
|
* convert skip/take info into RowNumber pattern
|
||||||
*/
|
*/
|
||||||
expression = SkipToRowNumberRewriter.Rewrite(Language, expression);
|
expression = SkipToRowNumberRewriter.Rewrite(Language, expression);
|
||||||
/*
|
|
||||||
* fix up any order-by's we may have changed
|
expression = WhereClauseRewriter.Rewrite(Context, expression);
|
||||||
*/
|
|
||||||
expression = OrderByRewriter.Rewrite(Language, expression);
|
return expression;
|
||||||
|
}
|
||||||
|
|
||||||
return expression;
|
public override string Format(Expression expression)
|
||||||
}
|
{
|
||||||
|
return TSqlFormatter.Format(Context, expression, Language);
|
||||||
public override string Format(Expression expression)
|
}
|
||||||
{
|
|
||||||
return TSqlFormatter.Format(Context, expression, Language);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -42,4 +42,9 @@
|
|||||||
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||||
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="UploadLocalPackages" AfterTargets="CopyPackages" >
|
||||||
|
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).nupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
|
||||||
|
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).snupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user