anchor.diff:      return transaction;
     }
   
  -  @deprecated
  -  Future endTransaction(Transaction transaction) async {
  +  Future _endTransaction(_Transaction transaction) async {
       if (transaction.successfull == true) {
         await execute("COMMIT;");
       } else {
  
positive.code:   }
  }
  
  class Transaction {
    bool successfull;
  }
  
  class Database {
    String get path => _path;
    String _path;
    int _id;
    Database._(this._path, this._id);
    var lock = new SynchronizedLock();
  
    @override
    String toString() {
  
negative.code:     });
    }
  
    Future<int> insert(String table, { String nullColumnHack,
      Map values, ConflictAlgorithm conflictAlgorithm}) {
      SqlBuilder builder = new SqlBuilder.insert(table, values: values, nullColumnHack: nullColumnHack, conflictAlgorithm: conflictAlgorithm);
      return rawInsert(builder.sql, builder.arguments);
    }
  
    Future<int> bulkInsert(String table, {String nullColumnHack,
      List<Map<String, dynamic>> items, ConflictAlgorithm conflictAlgorithm}) async {
      int count = 0;
      await inTransaction(() {
        items.forEach((values) async {
          count += await insert(table,
              nullColumnHack: nullColumnHack,
              values: values,
              conflictAlgorithm: conflictAlgorithm);
        });
      });
  
      return count;
    }
  
    /// for UPDATE sql query
    /// return the number of changes made
    Future<int> update(String sql, [List arguments]) async {
      return synchronized(_lock, () async {
        return await Sqflite._channel.invokeMethod(
            _methodUpdate, <String, dynamic>{
          _paramId: _id,
  