insertHttp method
插入
Implementation
Future<int?> insertHttp(
Database? database, String cacheKey, String value) async {
cacheKey = cacheKey.replaceAll("\"", "\"\"");
return await database?.transaction((txn) async {
return await txn.rawInsert(
'INSERT INTO $dbTableName(cacheKey, value) VALUES( \'' +
cacheKey +
'\', \'' +
value +
'\')');
});
}