summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL/Tuple.h
diff options
context:
space:
mode:
authorJan de Visser <jan@de-visser.net>2021-06-27 21:00:08 -0400
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-07-08 17:55:59 +0430
commit30691549fdc0d6f703735fb0c30ab54cf0cecb65 (patch)
treeefb328f7a7b42e5d647cbe8085d94920c57d6932 /Userland/Libraries/LibSQL/Tuple.h
parent633dc74606a556cdea4606f93fa50f01f46e2cd6 (diff)
downloadserenity-30691549fdc0d6f703735fb0c30ab54cf0cecb65.zip
LibSQL: Move Order and Nulls enums from SQL::AST to SQL namespace
The Order enum is used in the Meta component of LibSQL. Using this enum meant having to include the monster AST/AST.h include file. Furthermore, they are sort of basic and therefore can live in the general SQL namespace. Moved to LibSQL/Type.h. Also introduced a new class, SQLResult, which is needed in future patches.
Diffstat (limited to 'Userland/Libraries/LibSQL/Tuple.h')
-rw-r--r--Userland/Libraries/LibSQL/Tuple.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibSQL/Tuple.h b/Userland/Libraries/LibSQL/Tuple.h
index 19dc2d4dd9..20fb3525e7 100644
--- a/Userland/Libraries/LibSQL/Tuple.h
+++ b/Userland/Libraries/LibSQL/Tuple.h
@@ -7,6 +7,7 @@
#pragma once
#include <AK/Debug.h>
+#include <AK/Vector.h>
#include <LibSQL/Forward.h>
#include <LibSQL/TupleDescriptor.h>
#include <LibSQL/Value.h>
@@ -42,6 +43,7 @@ public:
[[nodiscard]] String to_string() const;
explicit operator String() const { return to_string(); }
+ [[nodiscard]] Vector<String> to_string_vector() const;
bool operator<(Tuple const& other) const { return compare(other) < 0; }
bool operator<=(Tuple const& other) const { return compare(other) <= 0; }