getForeignKeys method

Future<List> getForeignKeys(
  1. String tableName
)

Implementation

Future<List<dynamic>> getForeignKeys(String tableName) async {
  final Database db = (await this.db)!;
  final result = await db.rawQuery('PRAGMA foreign_key_list(`$tableName`)');

  return result;
}