Skip to content

Change from tuple to struct for storing metadata of stored collections #705

Open
@tmadlener

Description

@tmadlener

Currently we use a std::tuple to store some metatdata related to collections:

// A collection of additional information that describes the collection: the
// collectionID, the collection (data) type, whether it is a subset
// collection, and its schema version
using CollectionWriteInfoT = std::tuple<uint32_t, std::string, bool, unsigned int>;

This makes it hard to read via julia and also from a maintainability point of view it would be nicer, if this was something like

struct CollectionWriteInfo {
  uint32_t collectionID;
  std::string dataType;
  bool isSubset;
  unsigned int schemaVersion;
};

@peremato I suppose something along these lines should work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions