Skip to content

Commit b6c1982

Browse files
committed
🎉 Continue setting up new module
1 parent 8b36f95 commit b6c1982

5 files changed

Lines changed: 49 additions & 23 deletions

File tree

README.md

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1-
Databaseline
2-
============
3-
4-
<!-- To publish to PowerShell Gallery, commit an update to the .psd1 file -->
5-
<img src="images/Databaseline.svg" alt="Databaseline icon" align="right" height="200" width="200" />
6-
7-
[![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/Databaseline)](https://www.powershellgallery.com/packages/Databaseline/)
8-
[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/Databaseline)](https://www.powershellgallery.com/packages/Databaseline/)
9-
[![Actions Status](https://github.com/brianary/Databaseline/actions/workflows/continuous.yml/badge.svg)](https://github.com/brianary/Databaseline/actions/workflows/continuous.yml)
10-
[![Mastodon: @dataelemental@mastodon.social](https://badgen.net/badge/@dataelemental/@mastodon.social/blue?icon=mastodon)](https://mastodon.social/@dataelemental "DataElemental Mastodon profile")
11-
12-
A collection of general-purpose functions for objects, properties, and more.
13-
14-
<img src="images/demo.gif" alt="a demonstration of the module commands" height="300" width="600" />
15-
1+
Databaseline
2+
============
3+
4+
<!-- To publish to PowerShell Gallery, commit an update to the .psd1 file -->
5+
<img src="images/Databaseline.svg" alt="Databaseline icon" align="right" height="200" width="200" />
6+
7+
[![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/Databaseline)](https://www.powershellgallery.com/packages/Databaseline/)
8+
[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/Databaseline)](https://www.powershellgallery.com/packages/Databaseline/)
9+
[![Actions Status](https://github.com/brianary/Databaseline/actions/workflows/continuous.yml/badge.svg)](https://github.com/brianary/Databaseline/actions/workflows/continuous.yml)
10+
[![Mastodon: @dataelemental@mastodon.social](https://badgen.net/badge/@dataelemental/@mastodon.social/blue?icon=mastodon)](https://mastodon.social/@dataelemental "DataElemental Mastodon profile")
11+
12+
Enhancements for working with SQL Server databases.
13+
14+
<img src="images/demo.gif" alt="a demonstration of the module commands" height="300" width="600" />
15+
16+
- [Export-DatabaseScripts](./src/public/Export-DatabaseScripts.ps1): <!-- ERROR: Unable to find type [Database]. -->
17+
- [Export-MermaidER](./src/public/Export-MermaidER.ps1): <!-- ERROR: Unable to find type [Table]. -->
18+
- [Export-TableMerge](./src/public/Export-TableMerge.ps1): <!-- ERROR: Unable to find type [Table]. -->
19+
- [Find-DatabaseValue](./src/public/Find-DatabaseValue.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Database]. -->
20+
- [Find-DbColumn](./src/public/Find-DbColumn.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Database]. -->
21+
- [Find-DbIndexes](./src/public/Find-DbIndexes.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Database]. -->
22+
- [Measure-DbColumn](./src/public/Measure-DbColumn.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Column]. -->
23+
- [Measure-DbColumnValues](./src/public/Measure-DbColumnValues.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Column]. -->
24+
- [Measure-DbTable](./src/public/Measure-DbTable.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Table]. -->
25+
- [New-DbProviderObject](https://github.com/brianary/Databaseline/wiki/New-DbProviderObject): Create a common database object.
26+
- [Repair-DatabaseConstraintNames](./src/public/Repair-DatabaseConstraintNames.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Database]. -->
27+
- [Repair-DatabaseUntrustedConstraints](./src/public/Repair-DatabaseUntrustedConstraints.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Database]. -->
28+
- [Send-SqlReport](./src/public/Send-SqlReport.ps1): <!-- ERROR: Unable to find type [Microsoft.SqlServer.Management.Smo.Database]. -->
29+
- [Test-ConnectionString](https://github.com/brianary/Databaseline/wiki/Test-ConnectionString): Test a given connection string and provide details about the connection.
30+
- [Use-DbInstance](./src/public/Use-DbInstance.ps1): <!-- ERROR: Unable to find type [DbaInstanceParameter]. -->
31+
- [Use-SqlcmdParams](https://github.com/brianary/Databaseline/wiki/Use-SqlcmdParams): Use the calling script parameters to set Invoke-Sqlcmd defaults.

images/demo.gif

11.6 KB
Loading

images/demo.tape

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
# VHS https://github.com/charmbracelet/vhs
2-
Output demo.gif
3-
Hide
4-
Set Shell pwsh
5-
Type "Import-Module ../src/ModernConveniences.psd1"
6-
Enter
7-
Show
1+
# VHS https://github.com/charmbracelet/vhs
2+
Output demo.gif
3+
Hide
4+
Set Shell pwsh
5+
Type "Import-Module ../src/.publish/Databaseline.psd1"
6+
Enter
7+
Type "Clear-Host"
8+
Enter
9+
Show
10+
Type "#TODO"
11+
Enter
12+
Sleep 9s

scripts/Build-Module.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $(Get-Content $FullName -Raw)
3030
$public = Get-Item public/*.ps1
3131
$psm1 = [path]::ChangeExtension((Resolve-Path .publish/*.psd1),'psm1')
3232
return @"
33-
$(Get-Item private/*.ps1 |Format-Function)
33+
$(Get-Item private/*.ps1 -ErrorAction Ignore |Format-Function)
3434
$($public |Format-Function)
3535
Export-ModuleMember -Function $($public.BaseName -join ',')
3636
"@ |Out-File $psm1 utf8BOM

test/Placeholder.Tests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Describe 'New module' {
2+
It 'should have tests' {
3+
Set-ItResult -Inconclusive -Because 'no tests have been written yet'
4+
}
5+
}

0 commit comments

Comments
 (0)