8000 GitHub - raymanoz/redex: redacted-export: export table data, and redact fields as you go
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ redex Public

redacted-export: export table data, and redact fields as you go

License

Notifications You must be signed in to change notification settings

raymanoz/redex

Repository files navigation

redex

redacted-export: export table data, and redact fields as you go

how

Use gradle to build the redex jar $ ./gradlew clean jar

This will create a snapshot jar in build/libs/redex-SNAPSHOT.jar

Copy that jar as redex.jar nd teh batch file bin/redex.bat into the same directory.

Create a json config file containing the tables, and field fields that you would like to react. eg:

{ "name": "myDatabase",
  "jdbcUrl": "jdbc:sqlserver://SomeServer:50435;databaseName=myDB;integratedSecurity=true",
  "data": [
    {"name":  "People",
     "query": "select top 10 from those_people", 
     "redact": ["Surname", "PhoneNumber"]},
    {"name":  "Places",
     "query":  "places"}
  ]
}

The above configuration will create a spreadsheet named myDatabase.xlsx, exporting the query for People (2 fields redacted), and Places. The sheets in the workbook will be named the value you give name.

$ redex.bat config.json c:/mydir

Note

if you use are using MS integrated security, please be sure to copy the mssql-jdbc_auth-8.4.1.x64.dll file into the same directory as the redex.bat file.

About

redacted-export: export table data, and redact fields as you go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0