dropTable method

Future<void> dropTable(
  1. ISQLiteItem item
)

Implementation

Future<void> dropTable(ISQLiteItem item) async {
  final db = await getOpenDatabase();

  // Drop the table if it exists
  await db.execute('DROP TABLE IF EXISTS ${item.getTableName()}');

  // Perform vacuum to clean up and reclaim space
  await db.execute('VACUUM');
}