Strapping.jl
Strapping.jl copied to clipboard
Tools for mapping between Julia structs and 2D tabular data.
I've tried `Strapping.jl` on the following example: ```julia struct Person id::Int64 firstname::String lastname::String end struct Club id::Int64 name::String members::Array{Person} end StructTypes.StructType(::Type{Person}) = StructTypes.Struct() StructTypes.idproperty(::Type{Person}) = :id StructTypes.StructType(::Type{Club}) = StructTypes.Struct() StructTypes.idproperty(::Type{Club})...
I read your docs, but my brain would benefit from seeing Strapping in action. Is there a small project somewhere that maps a couple of related objects to tables?
as reported by @domluna on slack: https://gist.github.com/domluna/409cda49cba588300bb3d51e6a5c8543
Example below - `StructTypes` seems to handle this, so probably just a little investigation to wire up the correct method, unless I'm doing something wrong here. ```julia import StructTypes, Strapping...
xref https://github.com/quinnj/JSON3.jl/pull/113 & https://github.com/JuliaData/StructTypes.jl/pull/35/ I think Strapping should follow the behavior of JSON3 with respect to Ordered / Unordered? Simple repro below ```julia import StructTypes import Strapping struct Person name::String...
Whereas #16 deals w/ constructing optional structs, here are a couple issues deconstructing them: ```jl using Arrow: Arrow using Strapping: Strapping using StructTypes: StructTypes # Types # N.B. Making `TInterval`...