rawInsert method

  1. @Comment.new('The utilization of raw methods is generally discouraged due to their potential to consume substantial memory resources and impede program execution speed. Their implementation often involves processing data in an uncompressed or unoptimized manner, which can lead to performance degradation and memory bloat. Therefore, it is advisable to employ alternative programming techniques that offer better memory management and computational efficiency.', 'Do not use raw methods unless you are sure that they are the best solution for your problem.', true)
Future<int> rawInsert(
  1. String sql
)

Implementation

@Comment(
    'The utilization of raw methods is generally discouraged due to their potential to consume substantial memory resources and impede program execution speed. Their implementation often involves processing data in an uncompressed or unoptimized manner, which can lead to performance degradation and memory bloat. Therefore, it is advisable to employ alternative programming techniques that offer better memory management and computational efficiency.',
    'Do not use raw methods unless you are sure that they are the best solution for your problem.',
    true)
Future<int> rawInsert(String sql) async {
  final db = await DBProvider.db.database;
  int result = 0;
  result = await db!.rawInsert(sql);
  return result;
}