fixed and tested subschema promotions for beat processing
This commit is contained in:
19
scratch.rs
Normal file
19
scratch.rs
Normal file
@ -0,0 +1,19 @@
|
||||
use cellular_jspg::database::{Database, object::SchemaTypeOrArray};
|
||||
use cellular_jspg::tests::fixtures::get_queryer_db;
|
||||
|
||||
fn main() {
|
||||
let db_json = get_queryer_db();
|
||||
let db = Database::from_json(&db_json).unwrap();
|
||||
let keys: Vec<_> = db.schemas.keys().collect();
|
||||
println!("Found schemas: {}", keys.len());
|
||||
let mut found = false;
|
||||
for k in keys {
|
||||
if k.contains("email_addresses") {
|
||||
println!("Contains email_addresses: {}", k);
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
println!("No email_addresses found at all!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user