pub struct SchemaDiscoveryEngine { /* private fields */ }Expand description
Main schema discovery engine
Implementations§
Source§impl SchemaDiscoveryEngine
impl SchemaDiscoveryEngine
Sourcepub async fn new(
config: SchemaDiscoveryConfig,
platform: Arc<Platform>,
core_config: Config,
) -> Result<Self>
pub async fn new( config: SchemaDiscoveryConfig, platform: Arc<Platform>, core_config: Config, ) -> Result<Self>
Create a new schema discovery engine
Sourcepub async fn discover_schema(
&self,
keyspace: &str,
table: &str,
sstable_files: &[PathBuf],
) -> Result<SchemaInfo>
pub async fn discover_schema( &self, keyspace: &str, table: &str, sstable_files: &[PathBuf], ) -> Result<SchemaInfo>
Discover schema from a collection of SSTable files
Sourcepub async fn generate_cql(&self, schema: &SchemaInfo) -> Result<String>
pub async fn generate_cql(&self, schema: &SchemaInfo) -> Result<String>
Generate CQL CREATE TABLE statement from schema
pub async fn export_json(&self, _schema: &SchemaInfo) -> Result<String>
pub async fn export_json_with_config<T>( &self, _schema: &SchemaInfo, _config: &T, ) -> Result<String>
Sourcepub async fn compare_schemas(
&self,
schema1: &SchemaInfo,
schema2: &SchemaInfo,
) -> Result<String>
pub async fn compare_schemas( &self, schema1: &SchemaInfo, schema2: &SchemaInfo, ) -> Result<String>
Generate schema comparison report
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SchemaDiscoveryEngine
impl !UnwindSafe for SchemaDiscoveryEngine
impl Freeze for SchemaDiscoveryEngine
impl Send for SchemaDiscoveryEngine
impl Sync for SchemaDiscoveryEngine
impl Unpin for SchemaDiscoveryEngine
impl UnsafeUnpin for SchemaDiscoveryEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more