// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.10.0.

// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
import 'return_value.dart';

class ExecuteResult {
  final BigInt rowsAffected;

  const ExecuteResult({required this.rowsAffected});

  @override
  int get hashCode => rowsAffected.hashCode;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is ExecuteResult &&
          runtimeType == other.runtimeType &&
          rowsAffected == other.rowsAffected;
}

class QueryResult {
  final List<Map<String, ReturnValue>> rows;
  final List<String> columns;
  final BigInt rowsAffected;
  final PlatformInt64 lastInsertRowid;

  const QueryResult({
    required this.rows,
    required this.columns,
    required this.rowsAffected,
    required this.lastInsertRowid,
  });

  @override
  int get hashCode =>
      rows.hashCode ^
      columns.hashCode ^
      rowsAffected.hashCode ^
      lastInsertRowid.hashCode;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is QueryResult &&
          runtimeType == other.runtimeType &&
          rows == other.rows &&
          columns == other.columns &&
          rowsAffected == other.rowsAffected &&
          lastInsertRowid == other.lastInsertRowid;
}
