-
Notifications
You must be signed in to change notification settings - Fork 0
Database
Ghost_chu edited this page May 14, 2019
·
1 revision
This a huge part contains 4 classs, so i only write how to use it.
Database db = new MySQLCore(host,user,pass,database,port,max_connections,useSSL);
// Or use SQLite
Database db = new SQLiteCore(dbFile);
if(db instanceof MySQLCore){
//MYSQL
}else if(db instanceof SQLiteCore){
//SQLITE
}else{
//We don't what it is, maybe is a null.
}
db.execute(sql);
PreparedStatement ps = db.getConnection().prepareStatement(sql);
...