sui_indexer/backfill/mod.rs
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use clap::{Subcommand, ValueEnum};
pub mod backfill_instances;
pub mod backfill_runner;
pub mod backfill_task;
#[derive(Subcommand, Clone, Debug)]
pub enum BackfillTaskKind {
SystemStateSummaryJson,
/// \sql is the SQL string to run, appended with the range between the start and end,
/// as well as conflict resolution (see sql_backfill.rs).
/// \key_column is the primary key column to use for the range.
Sql {
sql: String,
key_column: String,
},
/// Starts a backfill pipeline from the ingestion engine.
/// \remote_store_url is the URL of the remote store to ingest from.
/// Any `IngestionBackfillKind` will need to map to a type that
/// implements `IngestionBackfillTrait`.
Ingestion {
kind: IngestionBackfillKind,
remote_store_url: String,
},
}
#[derive(ValueEnum, Clone, Debug)]
pub enum IngestionBackfillKind {
Digest,
RawCheckpoints,
TxAffectedObjects,
}