Skip to content

Commit

Permalink
Clean up imports and exports
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoverton committed Mar 19, 2024
1 parent 0c281d1 commit f21ea31
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/cli/src/introspection/document.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
use super::type_unification::{
unify_object_types, unify_schema, unify_type, TypeUnificationContext, TypeUnificationResult,
};
use configuration::{
schema::{Collection, ObjectField, ObjectType, Type},
Schema,
Expand All @@ -7,10 +10,6 @@ use mongodb::bson::{doc, Bson, Document};
use mongodb_agent_common::interface_types::MongoConfig;
use mongodb_support::BsonScalarType::{self, *};

use crate::introspection::type_unification::{unify_type, TypeUnificationContext};

use super::type_unification::{unify_object_types, unify_schema, TypeUnificationResult};

// Sample from all collections in the database
pub async fn sample_schema_from_db(
sample_size: u32,
Expand All @@ -32,7 +31,7 @@ pub async fn sample_schema_from_db(
Ok(schema)
}

pub async fn sample_schema_from_collection(
async fn sample_schema_from_collection(
collection_name: &str,
sample_size: u32,
config: &MongoConfig,
Expand Down

0 comments on commit f21ea31

Please sign in to comment.