sqlbrite/src/main/java/com/squareup/sqlbrite3/BriteDatabase.java
@WorkerThread
  public long insert(@NonNull String table, @ConflictAlgorithm int conflictAlgorithm,
      @NonNull ContentValues values) {
    SupportSQLiteDatabase db = getWritableDatabase();

    if (logging) {
      log("INSERT\n  table: %s\n  values: %s\n  conflictAlgorithm: %s", table, values,
          conflictString(conflictAlgorithm));
    }
    long rowId = db.insert(table, conflictAlgorithm, values);

    if (logging) log("INSERT id: %s", rowId);

    if (rowId != -1) {
      // Only send a table trigger if the insert was successful.
      sendTableTrigger(Collections.singleton(table));
    }
    return rowId;
  }
@WorkerThread
  public long insert(@NonNull String table, @ConflictAlgorithm int conflictAlgorithm,
      @NonNull ContentValues values) {
    SupportSQLiteDatabase db = getWritableDatabase();

    if (logging) {
      log("INSERT\n  table: %s\n  values: %s\n  conflictAlgorithm: %s", table, values,
          conflictString(conflictAlgorithm));
    }
    long rowId = db.insert(table, conflictAlgorithm, values);

    if (logging) log("INSERT id: %s", rowId);

    if (rowId != -1) {
      // Only send a table trigger if the insert was successful.
      sendTableTrigger(Collections.singleton(table));
    }
    return rowId;
  }
@ WorkerThread public long insert ( @ NonNull String table , @ ConflictAlgorithm int conflictAlgorithm , @ NonNull ContentValues values ) { SupportSQLiteDatabase db = getWritableDatabase ( ) ; if ( logging ) { log ( "INSERT\n  table: %s\n  values: %s\n  conflictAlgorithm: %s" , table , values , conflictString ( conflictAlgorithm ) ) ; } long rowId = db . insert ( table , conflictAlgorithm , values ) ; if ( logging ) log ( "INSERT id: %s" , rowId ) ; if ( rowId != - 1 ) { // Only send a table trigger if the insert was successful. sendTableTrigger ( Collections . singleton ( table ) ) ; } return rowId ; }
Insert a row into the specified {@code table} and notify any subscribed queries.

@see SupportSQLiteDatabase#insert(String, int, ContentValues)
Insert a row into the specified { @code table } and notify any subscribed queries .