Deleted DataBaseHelper and added it as inner class in DataHandler

This commit is contained in:
peet
2020-11-30 15:18:53 +01:00
parent f9921a051e
commit 4924a384a2
3 changed files with 2 additions and 25 deletions

View File

@@ -1,24 +0,0 @@
package org.ddnss.sfs.git.wdg.vokabel_trainer;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.Nullable;
public class DataBaseHelper extends SQLiteOpenHelper {
public DataBaseHelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
super(context, name, factory, version);
}
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL("create table if not exists vocTable(deutsch text not null , englisch text not null);");
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
}
}