1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

LibSQL: Rename Row::next_pointer setter to Row::set_next_pointer

This commit is contained in:
Timothy Flynn 2022-11-26 10:24:24 -05:00 committed by Linus Groh
parent 0986b383cd
commit c3a6fad080
2 changed files with 3 additions and 2 deletions

View file

@ -196,7 +196,7 @@ ErrorOr<void> Database::insert(Row& row)
// TODO Check constraints
row.set_pointer(m_heap->new_record_pointer());
row.next_pointer(row.table()->pointer());
row.set_next_pointer(row.table()->pointer());
TRY(update(row));
// TODO update indexes defined on table.

View file

@ -34,7 +34,8 @@ public:
virtual ~Row() override = default;
[[nodiscard]] u32 next_pointer() const { return m_next_pointer; }
void next_pointer(u32 ptr) { m_next_pointer = ptr; }
void set_next_pointer(u32 ptr) { m_next_pointer = ptr; }
RefPtr<TableDef> table() const { return m_table; }
[[nodiscard]] virtual size_t length() const override { return Tuple::length() + sizeof(u32); }
virtual void serialize(Serializer&) const override;