Class RedbStructure

Assembly: redb.Core.dll

REDB structure (field definition) entity with direct data storage.
Maps to _structures table in PostgreSQL.

public class RedbStructure : IRedbStructure

Inheritance

ObjectRedbStructure

Implements

Properties

Alias

Field alias (short name).

[JsonPropertyName("alias")]
public string? Alias { get; set; }

AllowNotNull

Is field required (not null).

[JsonPropertyName("allow_not_null")]
public bool? AllowNotNull { get; set; }

CollectionType

Collection type ID: Array (-9223372036854775668) or Dictionary (-9223372036854775667).

[JsonPropertyName("collection_type")]
public long? CollectionType { get; set; }

DefaultEditor

Default editor for field.

[JsonPropertyName("default_editor")]
public string? DefaultEditor { get; set; }

DefaultValue

Default value (binary).

[JsonPropertyName("default_value")]
public byte[]? DefaultValue { get; set; }

Id

Unique structure identifier.

[JsonPropertyName("id")]
public long Id { get; set; }

IdList

List identifier (for list-type fields).

[JsonPropertyName("id_list")]
public long? IdList { get; set; }

IdOverride

Override structure identifier (for inheritance).

[JsonPropertyName("id_override")]
public long? IdOverride { get; set; }

IdParent

Parent structure identifier (for nested fields).

[JsonPropertyName("id_parent")]
public long? IdParent { get; set; }

IdScheme

Scheme identifier this structure belongs to.

[JsonPropertyName("id_scheme")]
public long IdScheme { get; set; }

IdType

Type identifier for this field.

[JsonPropertyName("id_type")]
public long IdType { get; set; }

IsArray

Computed property: is this an array field.

[JsonIgnore]
public bool? IsArray { get; }

IsCompress

Compress field values.

[JsonPropertyName("is_compress")]
public bool? IsCompress { get; set; }

KeyType

Key type ID for Dictionary fields. NULL for non-dictionary fields.

[JsonPropertyName("key_type")]
public long? KeyType { get; set; }

Name

Field name.

[JsonPropertyName("name")]
public string Name { get; set; }

Order

Field order in scheme.

[JsonPropertyName("order")]
public long? Order { get; set; }

Readonly

Is field read-only.

[JsonPropertyName("readonly")]
public bool? Readonly { get; set; }

StoreNull

Store null values.

[JsonPropertyName("store_null")]
public bool? StoreNull { get; set; }

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

RedbStructure()

Default constructor for deserialization and mapping.