Class RedbTypeMapping

Namespace: redb.Core.Utils
Assembly: redb.Core.dll

Helper methods for REDB type mapping between C# types and database columns

public static class RedbTypeMapping

Inheritance

ObjectRedbTypeMapping

Methods

CanBeKey(long)

Check if type can be used as Dictionary key

public static bool CanBeKey(long typeId)

GetObjectValueColumn(long)

Get _objects column name for RedbPrimitive value storage

public static string GetObjectValueColumn(long typeId)

GetValueColumn(long)

Get _values column name for type ID

public static string GetValueColumn(long typeId)

IsCollectionType(long)

Check if type is a collection type (Array/Dictionary/JsonDocument/XDocument)

public static bool IsCollectionType(long typeId)

RequiresValuesRecords(long)

Check if type requires _values records (vs direct storage in _objects.value*)

public static bool RequiresValuesRecords(long typeId)