40 : m_name(name), m_schema(schema), m_force(force) {
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
uint8_t encoding_version() const override
Returns encoding version.
Declarations for Canonicalize.
size_t encoded_length_internal() const override
Returns internal serialized length.
Declarations for AlterTable request parameters.
std::string m_name
Table name.
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
std::string m_schema
New schema.
bool decode_bool(const uint8_t **bufp, size_t *remainp)
Decodes a boolean value from the given buffer.
Logging routines and macros.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
void encode_vstr(uint8_t **bufp, const void *buf, size_t len)
Encode a buffer as variable length string (vint64, data, null)
void encode_bool(uint8_t **bufp, bool bval)
Encodes a boolean into the given buffer.
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
static void table_name(std::string &name)
Canonicalizes a table name.
bool m_force
Force schema alteration even if generation does not match original.