private void bootFromDsqls ( String path ) { File [ ] files = new File ( path ) . listFiles ( new FilenameFilter ( ) { @ Override public boolean accept ( File dir , String name ) { return name . endsWith ( ".sql" ) ; } } ) ; for ( File file : files ) { //In this context only add/update is cared for. sqlSniffer . onCreate ( Paths . get ( file . toURI ( ) ) ) ; } }
Read off a bunch of sql files expecting insert statements within them .