Class CreateDatabase

java.lang.Object
edu.ntnu.idatt1002.k1g4.dao.CreateDatabase

public class CreateDatabase extends Object
Class to create a new database with tables.
Version:
0.1
Author:
Callum Gran
  • Constructor Details

    • CreateDatabase

      public CreateDatabase()
  • Method Details

    • createNewDatabase

      public static void createNewDatabase(String fileName)
      Connect to and create a new database
      Parameters:
      fileName - the database file name
    • createNewTables

      public static void createNewTables(String fileName)
      Create new database tables.
      Parameters:
      fileName - the database file name