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

Request: Metadata #306

Open
janEbert opened this issue Oct 7, 2019 · 2 comments
Open

Request: Metadata #306

janEbert opened this issue Oct 7, 2019 · 2 comments

Comments

@janEbert
Copy link

janEbert commented Oct 7, 2019

I think it would be great if JuliaDB could save some form of metadata (maybe a dictionary) as a kind of header in the same file as the database.
This would make managing and sharing different datasets much easier.

@jpsamaroo
Copy link
Collaborator

What sort of API are you thinking of for this metadata?

@janEbert
Copy link
Author

Possibly something along the lines of

using JuliaDB
potential_path = "my_2d_flat_dataset.jdb"
metadata = load_metadata(potential_path)
if metadata[:dim] == :2d && metadata[:hierarchy] == :flat
    println("We found the desired data!")
    db = load(potential_path)
end

Sorry for not including an example earlier. What do you think?

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

2 participants