JuliaData / Tables.jl

An interface for tables in Julia
https://juliadata.github.io/Tables.jl/stable/
MIT License
300 stars 52 forks source link

convenience constructors for Tables.Schema #314

Open jrevels opened 1 year ago

jrevels commented 1 year ago

ref https://github.com/beacon-biosignals/Legolas.jl/pull/54#discussion_r1005573216

copy/pasting @ericphanson 's comment:

Random thought: if we are going to be using Tables.Schema a lot more (not sure if we are yet), it could be nice to upstream an Tables.@Schema(a::Int, b::Float64, c::String) that expands to Tables.Schema((:a, :b, :c), (Int, Float64, String)), maybe also a begin/end form like

Tables.@Schema begin
a::Int
b::Float64
c::String
end
quinnj commented 1 year ago

Yeah, I'm down. Throw a PR up?