code: public static Map<String, String> getAllTables(SQLiteDatabase db) {
  		final Map<String, String> result = new LinkedHashMap<>();
  
  		query(db, null, QueryType.TABLE, new OnResultListener() {
  
  			@Override
  			public void onRow(SQLiteDatabase db, String name, String sql) {
  				if (StringUtils.hasText(sql)) {
  					result.put(name, StringUtils.nvl(sql).trim());
  				}
  			}
  		});
  
  		return result;
  	}
docs: Retrieve all table as a Map of (name, sql).
  
  @param db
  the db
  @return the all tables