logSql method

void logSql({
  1. required String sql,
  2. List? sqlArguments,
  3. String? result,
})

Log the sql statement if needed.

Implementation

void logSql({required String sql, List? sqlArguments, String? result}) {
  if (logLevel >= sqfliteLogLevelSql) {
    print(
        '$_prefix $sql${(sqlArguments?.isNotEmpty ?? false) ? ' $sqlArguments' : ''}');
    logResult(result: result);
  }
}