MantisBase v0.4.9
Loading...
Searching...
No Matches
mb::IndexDefinition Struct Reference

#include <entity_schema_field.h>

Public Member Functions

nlohmann::json toJSON () const

Static Public Member Functions

static IndexDefinition fromJSON (const nlohmann::json &j)

Public Attributes

std::string name
bool unique = false
std::vector< std::string > columns

Detailed Description

Secondary index definition attached to an entity schema.

Member Function Documentation

◆ fromJSON()

IndexDefinition mb::IndexDefinition::fromJSON ( const nlohmann::json & j)
static

Parse index definition from schema JSON.

◆ toJSON()

nlohmann::json mb::IndexDefinition::toJSON ( ) const
nodiscard

Serialize index definition to schema JSON.

Member Data Documentation

◆ columns

std::vector<std::string> mb::IndexDefinition::columns

◆ name

std::string mb::IndexDefinition::name

◆ unique

bool mb::IndexDefinition::unique = false

The documentation for this struct was generated from the following files: