From bfd6db234ce392184b6b1abdd0adcac461cf3a84 Mon Sep 17 00:00:00 2001 From: Sergio Govoni Date: Sun, 23 Oct 2022 16:51:58 +0200 Subject: [PATCH] Added single column anonymization feature examples --- Packages/d103/sqlcmdcli.dproj | 4 ++-- Sources/sqlcmdcli.Boot.pas | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Packages/d103/sqlcmdcli.dproj b/Packages/d103/sqlcmdcli.dproj index 89e257e..25cb251 100644 --- a/Packages/d103/sqlcmdcli.dproj +++ b/Packages/d103/sqlcmdcli.dproj @@ -112,8 +112,8 @@ 1033 true true - 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 - 77 + 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 + 80 diff --git a/Sources/sqlcmdcli.Boot.pas b/Sources/sqlcmdcli.Boot.pas index 2eaa6a7..0bfb63a 100644 --- a/Sources/sqlcmdcli.Boot.pas +++ b/Sources/sqlcmdcli.Boot.pas @@ -160,9 +160,18 @@ class procedure TBootCLI.Boot; 'anonymizedb -servername: -databasename: -username: ' + '-password: -schemaname: -tablename: ' + '-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('schemaname', 'schema',