Skip to content

Commit

Permalink
Added single column anonymization feature examples
Browse files Browse the repository at this point in the history
  • Loading branch information
segovoni committed Oct 23, 2022
1 parent 1922030 commit bfd6db2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Packages/d103/sqlcmdcli.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
<VerInfo_Locale>1033</VerInfo_Locale>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_AutoIncVersion>true</VerInfo_AutoIncVersion>
<VerInfo_Keys>CompanyName=;FileDescription=Command-line utility for ad hoc, interactive execution of commands on SQL Server;FileVersion=1.0.0.77;InternalName=sqlcmdcli;LegalCopyright=;LegalTrademarks=;OriginalFilename=sqlcmdcli.exe;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0;Comments=https://github.com/segovoni/sqlcmdcli</VerInfo_Keys>
<VerInfo_Build>77</VerInfo_Build>
<VerInfo_Keys>CompanyName=;FileDescription=Command-line utility for ad hoc, interactive execution of commands on SQL Server;FileVersion=1.0.0.80;InternalName=sqlcmdcli;LegalCopyright=;LegalTrademarks=;OriginalFilename=sqlcmdcli.exe;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0;Comments=https://github.com/segovoni/sqlcmdcli</VerInfo_Keys>
<VerInfo_Build>80</VerInfo_Build>
</PropertyGroup>
<ItemGroup>
<DelphiCompile Include="$(MainSource)">
Expand Down
15 changes: 12 additions & 3 deletions Sources/sqlcmdcli.Boot.pas
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,18 @@ class procedure TBootCLI.Boot;
'anonymizedb -servername:<name> -databasename:<dbname> -username:<name> ' +
'-password:<password> -schemaname:<tableschema> -tablename:<tablename> ' +
'-columnname:<columnname>');
LCommand.Examples.Add('anonymizedb -servername:MARCONI -databasename:AdventureWorks -username:sgovoni -password:royalbreeze489');
LCommand.Examples.Add('anonymizedb -s:MARCONI -d:AdventureWorks -u:sgovoni -p:royalbreeze489');
LCommand.Examples.Add('anondb -s:MARCONI -d:AdventureWorks -u:sgovoni -p:royalbreeze489');
LCommand.Examples.Add('anonymizedb -servername:MARCONI -databasename:AdventureWorks ' +
'-username:sgovoni -password:royalbreeze489');
LCommand.Examples.Add('anonymizedb -s:MARCONI -d:AdventureWorks -u:sgovoni ' +
'-p:royalbreeze489');
LCommand.Examples.Add('anondb -s:MARCONI -d:AdventureWorks -u:sgovoni ' +
'-p:royalbreeze489');
LCommand.Examples.Add('anonymizedb -servername:MARCONI -databasename:AdventureWorks ' +
'-username:sgovoni -password:royalbreeze489 -schemaname:Person -tablename:Address ' +
'-columnname:City');
LCommand.Examples.Add('anonymizedb -servername:MARCONI -databasename:AdventureWorks ' +
'-username:sgovoni -password:royalbreeze489 -schema:Person -table:Address ' +
'-column:City');

// Option: "schemaname"
LOption := LCommand.RegisterOption<string>('schemaname', 'schema',
Expand Down

0 comments on commit bfd6db2

Please sign in to comment.