@@ -12,7 +12,7 @@ export MissingType, MissingValue, IntType, StringType, Int128Value, UInt128Value
1212export StorageIntegration, BooleanType, UInt32Type, DecimalValue, BeTreeLocator, CSVConfig
1313export var"#Type" , Value, NamedColumn, GNFColumn, MinMonoid, SumMonoid, MaxMonoid
1414export BeTreeInfo, Binding, EDB, Attribute, Term, TargetRelation, IcebergData, Monoid
15- export BeTreeRelation, Cast, Pragma, Atom, RelTerm, CdcTargets , PlainTargets, Primitive
15+ export BeTreeRelation, Cast, Pragma, Atom, RelTerm, CDCTargets , PlainTargets, Primitive
1616export RelAtom, TargetRelations, CSVData, Data, Abstraction, Algorithm, Assign, Break
1717export Conjunction, Constraint, Def, Disjunction, Exists, FFI, FunctionalDependency
1818export MonoidDef, MonusDef, Not, Reduce, Script, Upsert, Construct, Loop, Declaration
@@ -2018,15 +2018,15 @@ function PB._encoded_size(x::RelTerm)
20182018 return encoded_size
20192019end
20202020
2021- struct CdcTargets
2021+ struct CDCTargets
20222022 inserts:: Vector{TargetRelation}
20232023 deletes:: Vector{TargetRelation}
20242024end
2025- CdcTargets (;inserts = Vector {TargetRelation} (), deletes = Vector {TargetRelation} ()) = CdcTargets (inserts, deletes)
2026- PB. default_values (:: Type{CdcTargets } ) = (;inserts = Vector {TargetRelation} (), deletes = Vector {TargetRelation} ())
2027- PB. field_numbers (:: Type{CdcTargets } ) = (;inserts = 1 , deletes = 2 )
2025+ CDCTargets (;inserts = Vector {TargetRelation} (), deletes = Vector {TargetRelation} ()) = CDCTargets (inserts, deletes)
2026+ PB. default_values (:: Type{CDCTargets } ) = (;inserts = Vector {TargetRelation} (), deletes = Vector {TargetRelation} ())
2027+ PB. field_numbers (:: Type{CDCTargets } ) = (;inserts = 1 , deletes = 2 )
20282028
2029- function PB. decode (d:: PB.AbstractProtoDecoder , :: Type{<:CdcTargets } , _endpos:: Int = 0 , _group:: Bool = false )
2029+ function PB. decode (d:: PB.AbstractProtoDecoder , :: Type{<:CDCTargets } , _endpos:: Int = 0 , _group:: Bool = false )
20302030 inserts = PB. BufferedVector {TargetRelation} ()
20312031 deletes = PB. BufferedVector {TargetRelation} ()
20322032 while ! PB. message_done (d, _endpos, _group)
@@ -2039,16 +2039,16 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:CdcTargets}, _endpos::In
20392039 Base. skip (d, wire_type)
20402040 end
20412041 end
2042- return CdcTargets (inserts[], deletes[])
2042+ return CDCTargets (inserts[], deletes[])
20432043end
20442044
2045- function PB. encode (e:: PB.AbstractProtoEncoder , x:: CdcTargets )
2045+ function PB. encode (e:: PB.AbstractProtoEncoder , x:: CDCTargets )
20462046 initpos = position (e. io)
20472047 ! isempty (x. inserts) && PB. encode (e, 1 , x. inserts)
20482048 ! isempty (x. deletes) && PB. encode (e, 2 , x. deletes)
20492049 return position (e. io) - initpos
20502050end
2051- function PB. _encoded_size (x:: CdcTargets )
2051+ function PB. _encoded_size (x:: CDCTargets )
20522052 encoded_size = 0
20532053 ! isempty (x. inserts) && (encoded_size += PB. _encoded_size (x. inserts, 1 ))
20542054 ! isempty (x. deletes) && (encoded_size += PB. _encoded_size (x. deletes, 2 ))
@@ -2162,11 +2162,11 @@ end
21622162
21632163struct TargetRelations
21642164 keys:: Vector{NamedColumn}
2165- body:: Union{Nothing,OneOf{<:Union{PlainTargets,CdcTargets }}}
2165+ body:: Union{Nothing,OneOf{<:Union{PlainTargets,CDCTargets }}}
21662166end
21672167TargetRelations (;keys = Vector {NamedColumn} (), body = nothing ) = TargetRelations (keys, body)
21682168PB. oneof_field_types (:: Type{TargetRelations} ) = (;
2169- body = (;plain= PlainTargets, cdc= CdcTargets ),
2169+ body = (;plain= PlainTargets, cdc= CDCTargets ),
21702170)
21712171PB. default_values (:: Type{TargetRelations} ) = (;keys = Vector {NamedColumn} (), plain = nothing , cdc = nothing )
21722172PB. field_numbers (:: Type{TargetRelations} ) = (;keys = 1 , plain = 2 , cdc = 3 )
@@ -2181,7 +2181,7 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:TargetRelations}, _endpo
21812181 elseif field_number == 2
21822182 body = OneOf (:plain , PB. decode (d, Ref{PlainTargets}))
21832183 elseif field_number == 3
2184- body = OneOf (:cdc , PB. decode (d, Ref{CdcTargets }))
2184+ body = OneOf (:cdc , PB. decode (d, Ref{CDCTargets }))
21852185 else
21862186 Base. skip (d, wire_type)
21872187 end
@@ -2196,7 +2196,7 @@ function PB.encode(e::PB.AbstractProtoEncoder, x::TargetRelations)
21962196 elseif x. body. name === :plain
21972197 PB. encode (e, 2 , x. body[]:: PlainTargets )
21982198 elseif x. body. name === :cdc
2199- PB. encode (e, 3 , x. body[]:: CdcTargets )
2199+ PB. encode (e, 3 , x. body[]:: CDCTargets )
22002200 end
22012201 return position (e. io) - initpos
22022202end
@@ -2207,7 +2207,7 @@ function PB._encoded_size(x::TargetRelations)
22072207 elseif x. body. name === :plain
22082208 encoded_size += PB. _encoded_size (x. body[]:: PlainTargets , 2 )
22092209 elseif x. body. name === :cdc
2210- encoded_size += PB. _encoded_size (x. body[]:: CdcTargets , 3 )
2210+ encoded_size += PB. _encoded_size (x. body[]:: CDCTargets , 3 )
22112211 end
22122212 return encoded_size
22132213end
0 commit comments