Skip to content

Commit

Permalink
[indexer-alt] Add object filter queries
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Jan 14, 2025
1 parent 90da07b commit dd74993
Show file tree
Hide file tree
Showing 6 changed files with 494 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/sui-indexer-alt-schema/src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct StoredObject {
pub serialized_object: Option<Vec<u8>>,
}

#[derive(Insertable, Debug, Clone, FieldCount)]
#[derive(Insertable, QueryableByName, Selectable, Debug, Clone, FieldCount)]
#[diesel(table_name = obj_versions, primary_key(object_id, object_version))]
pub struct StoredObjVersion {
pub object_id: Vec<u8>,
Expand Down
1 change: 1 addition & 0 deletions crates/sui-indexer-alt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ diesel_migrations.workspace = true
futures.workspace = true
hex.workspace = true
itertools.workspace = true
move-core-types.workspace = true
serde.workspace = true
telemetry-subscribers.workspace = true
tokio.workspace = true
Expand Down
1 change: 1 addition & 0 deletions crates/sui-indexer-alt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub(crate) mod bootstrap;
pub mod config;
pub(crate) mod consistent_pruning;
pub(crate) mod handlers;
pub mod queries;

pub async fn start_indexer(
db_args: DbArgs,
Expand Down
4 changes: 4 additions & 0 deletions crates/sui-indexer-alt/src/queries/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

pub mod objects;
Loading

0 comments on commit dd74993

Please sign in to comment.