I'm currently doing my first job for a client, I'm using sqlite3 in java.
Well the question is the following, to make the project I need to create a database, and to test the program filled the database with fictitious data.
Now, what happens when I hand over the project to my client? How do you create the database tables etc. on your computer? What about the connection I make in the database?
Does the client have to install something on the computer, does he have to create his own database?
public class Conector {
String url="C:\Users\Diego U\Documents\Christian Manager";
Connection connect;
public void Connect()
{
try {
connect = DriverManager.getConnection("jdbc:sqlite:"+url);
if (connect!=null) {
System.out.println("Conectado");
}
}catch (SQLException ex) {
System.err.println("No se ha podido conectar a la base de datos\n"+ex.getMessage());
}
}
public void close(){
try {
connect.close();
} catch (SQLException ex) {
Logger.getLogger(Conector.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
That's the part of my class that connects the database with java