Skip to content

Commit

Permalink
Added missing javadoc comment
Browse files Browse the repository at this point in the history
Signed-off-by: M6xxy <79139144+M6xxy@users.noreply.github.com>
  • Loading branch information
M6xxy committed Nov 26, 2024
1 parent 3be7727 commit 1dbb4b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/group8/project_files/DatabaseExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ private void executeSqlFile(Connection connection, String filePath) {
}
}

/**
* This method runs the create.sql file in order to populate db
* @param isEmpty takes in a boolean that if 1 implies db empty and populates
*/
public void populateDb(boolean isEmpty) {
if(isEmpty) {
runSqlFile("./db/create.sql");
Expand Down

0 comments on commit 1dbb4b4

Please sign in to comment.