SqlTemplate

1.5.0

SqlTemplate is a templating tool based on Embedded PowerShell that aims to resolve the following frequent SQL pain
points:
* Reusing subqueries and CTEs across multiple queries
* Writing queries meant to run on different SQL platforms
* Generating many similar columns
Read the guide and browse the source code at https://github.com/panasenco/sqltemplate

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name SqlTemplate

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Aram Panasenco

Copyright

MIT License Copyright (c) 2019 Aram Panasenco Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Owners

Tags

SQL Template

Functions

Invoke-SqlTemplate

Dependencies

  • SqlTemplate.nuspec
  • LICENSE
  • publish.ps1
  • README.md
  • SqlTemplate.psd1
  • SqlTemplate.psm1
  • Tests\SqlTemplate.Tests.ps1
  • Tests\Files\Complex.eps1.sql
  • Tests\Files\example.eps1.sql
  • Tests\Files\MainQuery.eps1.sql
  • Tests\Files\MaterializeSelect.eps1.sql
  • Tests\Files\NotTemplate.sql
  • Tests\Files\Simple.eps1.sql
  • Tests\Files\subquery1.eps1.sql
  • Tests\Files\subquery2.eps1.sql
  • Tests\Files\subquery3.eps1.sql
  • Tests\Files\Trivial.eps1.sql
  • Wrappers\Aggregate.eps1.sql
  • Wrappers\Concatenate.eps1.sql
  • Wrappers\CTE.eps1.sql
  • Wrappers\DateDiff.eps1.sql
  • Wrappers\DateToString.eps1.sql
  • Wrappers\ExecuteIfExists.eps1.sql
  • Wrappers\GitHistory.eps1.sql
  • Wrappers\Inline.eps1.sql
  • Wrappers\JUnit.eps1.sql
  • Wrappers\JUnitTest.eps1.sql
  • Wrappers\Materialize.eps1.sql
  • Wrappers\Mocha.eps1.sql
  • Wrappers\NoLock.eps1.sql
  • Wrappers\NUnit.eps1.sql
  • Wrappers\NUnitTest.eps1.sql
  • Wrappers\Procedure.eps1.sql
  • Wrappers\QuotedId.eps1.sql
  • Wrappers\RemoveAggregated.eps1.sql
  • Wrappers\Sanitize.eps1.sql
  • Wrappers\SelectSingle.eps1.sql
  • Wrappers\StringLength.eps1.sql
  • Wrappers\StringToDate.eps1.sql
  • Wrappers\StringToInt.eps1.sql
  • Wrappers\Substring.eps1.sql
  • Wrappers\SubstringIndex.eps1.sql
  • Wrappers\SystemDate.eps1.sql
  • Wrappers\View.eps1.sql

Version History

Version Downloads Last updated
1.5.0 (current version) 5 1/11/2021
1.4.0 7 12/31/2020
1.3.0 30 7/29/2020
1.2.0 17 6/17/2020
1.0.4 12 5/18/2020