code: private void throwIfStatementForbidden(PreparedStatement statement) {
          if (mOnlyAllowReadOnlyOperations && !statement.mReadOnly) {
              throw new com.couchbase.lite.internal.database.sqlite.exception.SQLiteException(
                      "Cannot execute this statement because it "
                      + "might modify the database but the connection is read-only.");
          }
      }
docs: https://github.com/android/platform_frameworks_base/blob/nougat-release/core/java/android/database/sqlite/SQLiteConnection.java#L1023-L1028