18#ifndef TRINITY_DATABASE_FIELD_H
19#define TRINITY_DATABASE_FIELD_H
53 char const*
Name =
nullptr;
102 return GetUInt8() == 1 ? true :
false;
105 uint8 GetUInt8()
const;
106 int8 GetInt8()
const;
108 int16 GetInt16()
const;
110 int32 GetInt32()
const;
112 int64 GetInt64()
const;
113 float GetFloat()
const;
114 double GetDouble()
const;
116 char const* GetCString()
const;
117 std::string GetString()
const;
118 std::string_view GetStringView()
const;
119 std::vector<uint8> GetBinary()
const;
123 std::array<uint8, S> buf;
124 GetBinarySizeChecked(buf.data(), S);
130 return _value ==
nullptr;
137 void SetValue(
char const* newValue,
uint32 length);
142 void GetBinarySizeChecked(
uint8* buf,
size_t size)
const;
std::chrono::system_clock::time_point SystemTimePoint
Class used to access individual fields of database query result.
QueryResultFieldMetadata const * _meta
std::array< uint8, S > GetBinary() const
TC_COMMON_API char const * GetDate()
constexpr std::size_t size()