Kleinrat/frictionless/src/core does not have a README file
pub(all) enum Cell {
Missing
TextValue(String)
IntegerValue(Int64)
BigIntegerValue(BigInt)
NumberValue(Double)
ExactNumberValue(ExactDecimal)
SpecialNumber(String)
BooleanValue(Bool)
StructuredValue(String)
TemporalValue(String)
} derive(Eq, Hash, Debug)pub(all) struct CsvVersionDiff {
old_rows : Int
new_rows : Int
columns_added : Array[String]
columns_removed : Array[String]
added : Array[CsvSnapshotRow]
removed : Array[CsvSnapshotRow]
changed : Array[CsvChangedRow]
unchanged : Int
conflicts : Array[CsvKeyConflict]
} derive(Eq, Debug, ToJson)fn DataPackage::validate_profiles(self : DataPackage, schemas : Map[String, Json]) -> Array[Diagnostic]pub(all) struct DataResource {
name : String
location : ResourceLocation
metadata : Json
} derive(Debug)fn DataResource::read(self : DataResource, read_local : (String) -> Result[Bytes, String], read_remote : (String) -> Result[Bytes, String], max_bytes? : Int) -> Result[ResourceContent, String]fn DataResource::resolve_schema(self : DataResource, read_local : (String) -> Result[Bytes, String], read_remote : (String) -> Result[Bytes, String]) -> Result[Json?, String]pub struct ExternalKeyCursor {
// private fields
}fn ExternalKeyCursor::feed(self : ExternalKeyCursor, line : String, report : (Int, ExternalLocation, ExternalLocation?) -> Unit) -> Unitpub struct ExternalPlan {
resources : Array[Resource]
rules : Array[ExternalRule]
// private fields
}fn ExternalPlan::feed(self : ExternalPlan, table : Int, values : Array[String], missing : Array[String], location : ExternalLocation, emit : (String) -> Unit, diagnose : (Int, Diagnostic) -> Unit) -> Unitpub(all) struct ExternalRule {
code : String
resource : String
target : String
field : String
} derive(ToJson)pub struct ExternalRun {
// private fields
}pub(all) struct Field {
name : String
kind : FieldType
format : String
boolean_tokens : BooleanTokens?
numeric_format : NumericFormat?
required : Bool
enum_values : Array[Cell]?
unique : Bool
minimum : Double?
maximum : Double?
min_length : Int?
max_length : Int?
pattern : FieldPattern?
decimal_minimum : ExactDecimal?
decimal_maximum : ExactDecimal?
exact_minimum : BigInt?
exact_maximum : BigInt?
temporal_minimum : String?
temporal_maximum : String?
} derive(Debug)pub struct ForeignKeyIndex {
// private fields
}fn ForeignKeyIndex::new(reference : Table, fields : Array[String]) -> Result[ForeignKeyIndex, Diagnostic]fn ForeignKeyIndex::validate(self : ForeignKeyIndex, table : Table, fields : Array[String]) -> Array[Diagnostic]pub struct GroupCountAccumulator {
// private fields
}fn GroupCountAccumulator::feed(self : GroupCountAccumulator, row : Array[String], start_line? : Int, end_line? : Int) -> Result[Unit, String]fn GroupCountAccumulator::new(resource : String, header : Array[String], group_by : Array[String]) -> Result[GroupCountAccumulator, String]pub(all) struct ImpactExample {
diagnostic : Diagnostic
lines : (Int, Int)?
} derive(Eq, Debug, ToJson)pub(all) struct ImpactSummary {
rows : Int
accepted_by_both : Int
invalid_in_both : Int
newly_invalid : Int
newly_valid : Int
regressions : Array[ImpactExample]
recoveries : Array[ImpactExample]
} derive(Eq, Debug, ToJson)pub(all) struct LookupGroup {
count : Int
examples : Array[LookupExample]
} derive(Eq, Debug, ToJson)pub(all) struct LookupReport {
master_rows : Int
detail_rows : Int
matched : Int
missing_reference : LookupGroup
ambiguous_reference : LookupGroup
empty_reference : LookupGroup
duplicate_master : LookupGroup
empty_master : LookupGroup
unused_master_keys : LookupGroup
} derive(Eq, Debug, ToJson)pub struct LookupTable {
// private fields
}fn LookupTable::preview_keys(self : LookupTable, columns : Array[String]) -> Result[LookupPreview, String]pub(all) struct ReferenceChange {
key : Array[String]
reason : String
old_reference : Array[String]?
new_reference : Array[String]?
old_child_lines : (Int, Int)?
new_child_lines : (Int, Int)?
old_parent_lines : Array[(Int, Int)]
new_parent_lines : Array[(Int, Int)]
old_status : String
new_status : String
} derive(Eq, Debug, ToJson)pub(all) struct ReferenceImpact {
findings : Array[ReferenceChange]
child_conflicts : Array[CsvKeyConflict]
parent_conflicts : Array[CsvKeyConflict]
} derive(Eq, Debug, ToJson)pub struct RowValidator {
// private fields
}fn RowValidator::new(name : String, schema : TableSchema, header : Array[String], max_errors? : Int) -> Result[RowValidator, Array[Diagnostic]]pub struct SchemaImpact {
// private fields
}fn SchemaImpact::new(name : String, before : TableSchema, after : TableSchema, header : Array[String], max_examples? : Int) -> Result[SchemaImpact, Array[Diagnostic]]pub(all) struct SchemaInference {
schema : TableSchema
sampled_rows : Int
total_rows : Int
hints : Array[InferenceHint]
} derive(Debug)fn SnapshotPlan::new(descriptor : Descriptor, target : String, fields : Array[String]) -> Result[SnapshotPlan, Array[Diagnostic]]fn SnapshotPlan::project(self : SnapshotPlan, table : Int, reference : Bool, values : Array[String], missing : Array[String], row : Int, emit : (String, String) -> Unit, diagnose : (Diagnostic) -> Unit) -> Unitfn TableSchema::validate(self : TableSchema, name : String, header : Array[String], rows : Array[Array[String]], missing_values? : Array[String]?) -> TableReportfn TableSchema::validate_json(self : TableSchema, name : String, input : JsonInputTable) -> TableReportpub struct TabularCsvSettings {
dialect : CsvDialect
escape : Char?
double_quote : Bool
header : Bool
null_sequence : String?
comment : Char?
skip_space : Bool
case_sensitive : Bool
}fn TabularCsvSettings::decode(self : TabularCsvSettings, name : String, text : String) -> Result[InputTable, String]fn TabularCsvSettings::matches_header(self : TabularCsvSettings, header : Array[String], names : Array[String]) -> Boolfn TabularCsvSettings::missing_values(self : TabularCsvSettings, values : Array[String]) -> Array[String]pub struct ValidationPlan {
// private fields
}fn ValidationPlan::estimate(self : ValidationPlan, row_counts : Map[String, Int]) -> Result[RelationshipWork, String]fn compare_csv_versions(old : LookupTable, current : LookupTable, keys : Array[String]) -> Result[CsvVersionDiff, String]fn compare_group_counts(before : GroupCountAccumulator, after : GroupCountAccumulator, min_loss? : Int, min_percent? : Int) -> Result[GroupCountReport, String]fn compare_reference_impact(old_parent : LookupTable, new_parent : LookupTable, old_child : LookupTable, new_child : LookupTable, parent_key : Array[String], child_key : Array[String], references : Array[String]) -> Result[ReferenceImpact, String]fn compare_temporal(type_name : String, left : String, right : String) -> Intfn infer_table_schema(header : Array[String], rows : Array[Array[String]], sample_limit? : Int, missing_values? : Array[String]) -> SchemaInferencefn input_from_csv(name : String, text : String, dialect? : CsvDialect) -> Result[InputTable, String]fn merge_external_runs(count : Int, read : (Int) -> String, write : (String) -> Unit) -> Unitfn normalize_temporal_format(type_name : String, raw : String, format : String) -> Result[String, String]fn parse_profiled_mixed_descriptor(text : String, profile_schemas : Map[String, Json], resolved_documents : Map[String, Json]) -> Result[Descriptor, Array[Diagnostic]]fn reconcile_issue_csv(master : LookupTable, master_columns : Array[String], detail : LookupTable, detail_columns : Array[String], trim_keys? : Bool) -> Result[(String, Bool), String]fn reconcile_issue_sarif(master : LookupTable, master_columns : Array[String], detail : LookupTable, detail_columns : Array[String], master_uri~ : String, detail_uri~ : String, trim_keys? : Bool) -> Result[(Json, Bool), String]fn reconcile_tables(master : LookupTable, master_columns : Array[String], detail : LookupTable, detail_columns : Array[String], max_examples? : Int, trim_keys? : Bool) -> Result[LookupReport, String]fn safe_resource_path(path : String) -> Boolfn supports_temporal_format(type_name : String, format : String) -> Boolfn temporal_order(kind : String, left : String, right : String) -> Int?fn validate_json_table(name : String, fields : Array[Field], input : JsonInputTable, missing_values? : Array[String], row_rules? : Array[RowRule]) -> TableReportfn validate_mixed_package(descriptor : Descriptor, inputs : Array[TabularResourceInput], on_source? : (String, Int, String, Int, Int) -> Unit, on_duplicate? : (String, Int, Int) -> Unit, on_relationships? : (ValidationPlan, RelationshipWork) -> Unit) -> PackageReportfn validate_primary_key(table : Table, fields : Array[String], on_duplicate? : (String, Int, Int) -> Unit) -> Array[Diagnostic]fn validate_table_schema(name : String, schema : TableSchema, header : Array[String], rows : Array[Array[String]], missing_values? : Array[String]?) -> TableReportfn write_reconcile_issue_sarif(master : LookupTable, master_columns : Array[String], detail : LookupTable, detail_columns : Array[String], write_chunk : (String) -> Unit, master_uri~ : String, detail_uri~ : String, trim_keys? : Bool) -> Result[Bool, String]Install
Download zipFrictionless Data Package and Table Schema tools for MoonBit