logSql method
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);
}
}