mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:17:43 +00:00
LibSQL: Remove Core::EventReceiver parent from SQL::Heap
This relationship was only used to provide a name and factory methods for the heap.
This commit is contained in:
parent
2c17742811
commit
4a04438e43
7 changed files with 29 additions and 21 deletions
|
@ -145,7 +145,7 @@ void insert_and_get_to_and_from_btree(int num_keys)
|
|||
{
|
||||
ScopeGuard guard([]() { unlink("/tmp/test.db"); });
|
||||
{
|
||||
auto heap = SQL::Heap::construct("/tmp/test.db");
|
||||
auto heap = MUST(SQL::Heap::create("/tmp/test.db"));
|
||||
TRY_OR_FAIL(heap->open());
|
||||
SQL::Serializer serializer(heap);
|
||||
auto btree = setup_btree(serializer);
|
||||
|
@ -162,7 +162,7 @@ void insert_and_get_to_and_from_btree(int num_keys)
|
|||
}
|
||||
|
||||
{
|
||||
auto heap = SQL::Heap::construct("/tmp/test.db");
|
||||
auto heap = MUST(SQL::Heap::create("/tmp/test.db"));
|
||||
TRY_OR_FAIL(heap->open());
|
||||
SQL::Serializer serializer(heap);
|
||||
auto btree = setup_btree(serializer);
|
||||
|
@ -181,7 +181,7 @@ void insert_into_and_scan_btree(int num_keys)
|
|||
{
|
||||
ScopeGuard guard([]() { unlink("/tmp/test.db"); });
|
||||
{
|
||||
auto heap = SQL::Heap::construct("/tmp/test.db");
|
||||
auto heap = MUST(SQL::Heap::create("/tmp/test.db"));
|
||||
TRY_OR_FAIL(heap->open());
|
||||
SQL::Serializer serializer(heap);
|
||||
auto btree = setup_btree(serializer);
|
||||
|
@ -199,7 +199,7 @@ void insert_into_and_scan_btree(int num_keys)
|
|||
}
|
||||
|
||||
{
|
||||
auto heap = SQL::Heap::construct("/tmp/test.db");
|
||||
auto heap = MUST(SQL::Heap::create("/tmp/test.db"));
|
||||
TRY_OR_FAIL(heap->open());
|
||||
SQL::Serializer serializer(heap);
|
||||
auto btree = setup_btree(serializer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue