Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: write_record / read_record to read/write a single row from a record instance #80

Open
kleinschmidt opened this issue Feb 21, 2023 · 0 comments

Comments

@kleinschmidt
Copy link
Member

In many different contexts we are using Legolas to read/write single-row tables as a way of de/serializing record structs. As a result, I fidn I'm frequently copy-pasting the same boilerplate code (wrap the row in a vector, get the schema version, Legolas.write, Legolas.read, only(Tables.rows(tbl)), get the record type, construct teh record).

Having a (read|write)_record (or maybe (read|write)_row?) methods defined here woudl reduce this duplication a lot.

see also: beacon-biosignals/LegolasFlux.jl#24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant