Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sunitparekh committed Feb 24, 2018
1 parent 4485a2c commit 5ee666a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## Kotlin Sample Project for Data Anonymization


1. Download and start H2 database server
1. Connect to source (movies_source) database and execute create_tables.sql script
1. Connect to destination (movies_dest) database and execute create_tables.sql script
1. Insert sample data into source database tables using scripts insert_movies.sql and insert_ratings.sql
1. Run this main program using following command
1. Now change Main program (Anonymizer.kt) as per your need and delete resources (*.sql files)

### Running it using maven command line

Expand Down
6 changes: 6 additions & 0 deletions src/main/kotlin/com/github/dataanon/Anonymizer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import com.github.dataanon.strategy.string.FixedString

fun main(args: Array<String>) {

// Download and start H2 database server
// Connect to source (movies_source) database and execute create_tables.sql script
// Connect to destination (movies_dest) database and execute create_tables.sql script
// Insert sample data into source database tables using scripts insert_movies.sql and insert_ratings.sql
// Run this main program

val source = DbConfig("jdbc:h2:tcp://localhost/~/movies_source", "sa", "")
val dest = DbConfig("jdbc:h2:tcp://localhost/~/movies_dest", "sa", "")

Expand Down

0 comments on commit 5ee666a

Please sign in to comment.