mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibSQL: Allow expressions and column names in SELECT ... FROM
Up to now the only ``SELECT`` statement that worked was ``SELECT * FROM <table>``. This commit allows a column list consisting of column names and expressions in addition to ``*``. ``WHERE`` still doesn't work though.
This commit is contained in:
parent
f33a288ca4
commit
fe50598a03
8 changed files with 90 additions and 20 deletions
|
@ -116,6 +116,11 @@ public:
|
|||
bool operator>(Value const&) const;
|
||||
bool operator>=(Value const&) const;
|
||||
|
||||
[[nodiscard]] TupleElementDescriptor descriptor() const
|
||||
{
|
||||
return { "", type(), Order::Ascending };
|
||||
}
|
||||
|
||||
static Value const& null();
|
||||
static Value create_tuple(NonnullRefPtr<TupleDescriptor> const&);
|
||||
static Value create_array(SQLType element_type, Optional<size_t> const& max_size = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue