improve db export

This commit is contained in:
tom79 2019-03-02 11:40:46 +01:00
parent 73fd2a50c9
commit 90763435a3
2 changed files with 7 additions and 3 deletions

View File

@ -1444,6 +1444,10 @@ public abstract class BaseMainActivity extends BaseActivity
final String fileName = "Mastalab_export_"+timeStamp+".xls";
List<String> excludedValues = new ArrayList<>();
excludedValues.add(Sqlite.TABLE_TRACKING_BLOCK);
excludedValues.add(Sqlite.TABLE_STATUSES_CACHE);
excludedValues.add(Sqlite.TABLE_CUSTOM_EMOJI);
excludedValues.add(Sqlite.TABLE_BOOST_SCHEDULE);
sqliteToExcel.setExcludeValuesFromTables(excludedValues);
sqliteToExcel.exportAllTables(fileName, new SQLiteToExcel.ExportListener() {
@Override

View File

@ -39,7 +39,7 @@ public class Sqlite extends SQLiteOpenHelper {
//Table of stored status
static final String TABLE_STATUSES_STORED = "STATUSES_STORED";
//Table for custom emoji
static final String TABLE_CUSTOM_EMOJI = "CUSTOM_EMOJI";
public static final String TABLE_CUSTOM_EMOJI = "CUSTOM_EMOJI";
//Table for search
static final String TABLE_SEARCH = "SEARCH";
@ -47,7 +47,7 @@ public class Sqlite extends SQLiteOpenHelper {
static final String TABLE_TEMP_MUTE = "TEMP_MUTE";
//Table for cached statuses
static final String TABLE_STATUSES_CACHE = "STATUSES_CACHE";
public static final String TABLE_STATUSES_CACHE = "STATUSES_CACHE";
//Table for instance names
static final String TABLE_INSTANCES = "INSTANCES";
@ -62,7 +62,7 @@ public class Sqlite extends SQLiteOpenHelper {
static final String TABLE_CACHE_TAGS = "CACHE_TAGS";
//Table for scheduling boosts
static final String TABLE_BOOST_SCHEDULE = "BOOST_SCHEDULE";
public static final String TABLE_BOOST_SCHEDULE = "BOOST_SCHEDULE";
//Table for blocking tracking domains
public static final String TABLE_TRACKING_BLOCK = "TRACKING_BLOCK";