mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Private Member Functions
m::Schema::entry_type Struct Reference

#include <Schema.hpp>

Collaboration diagram for m::Schema::entry_type:
[legend]

Public Types

enum  constraints_t : uint64_t { NOT_NULLABLE = 0b1U , UNIQUE = 0b10U , REFERENCES_UNIQUE = 0b100U , IS_HIDDEN = 0b1000U }
 

Public Member Functions

 entry_type (Identifier id, const Type *type, constraints_t constraints=constraints_t{0})
 
bool nullable () const
 
bool unique () const
 
bool references_unique () const
 

Static Public Member Functions

static entry_type CreateArtificial ()
 

Data Fields

Identifier id
 
const Typetype
 
constraints_t constraints
 

Private Member Functions

 entry_type ()
 

Detailed Description

Definition at line 76 of file Schema.hpp.

Member Enumeration Documentation

◆ constraints_t

Enumerator
NOT_NULLABLE 

entry must not be NULL

UNIQUE 

entry has unique values

REFERENCES_UNIQUE 

entry references unique values

IS_HIDDEN 

entry is hidden to the user

Definition at line 78 of file Schema.hpp.

Constructor & Destructor Documentation

◆ entry_type() [1/2]

Schema::entry_type::entry_type ( )
private

Definition at line 47 of file Schema.cpp.

◆ entry_type() [2/2]

m::Schema::entry_type::entry_type ( Identifier  id,
const Type type,
constraints_t  constraints = constraints_t{0} 
)
inline

Definition at line 94 of file Schema.hpp.

Member Function Documentation

◆ CreateArtificial()

static entry_type m::Schema::entry_type::CreateArtificial ( )
inlinestatic

◆ nullable()

bool m::Schema::entry_type::nullable ( ) const
inline

Definition at line 102 of file Schema.hpp.

◆ references_unique()

bool m::Schema::entry_type::references_unique ( ) const
inline

Definition at line 104 of file Schema.hpp.

◆ unique()

bool m::Schema::entry_type::unique ( ) const
inline

Definition at line 103 of file Schema.hpp.

Field Documentation

◆ constraints

constraints_t m::Schema::entry_type::constraints

Definition at line 88 of file Schema.hpp.

◆ id

Identifier m::Schema::entry_type::id

◆ type

const Type* m::Schema::entry_type::type

Definition at line 87 of file Schema.hpp.

Referenced by m::idx::ArrayIndex< Key >::bulkload().


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