mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibSQL: Introduce SELECT ... LIMIT xxx OFFSET yyy
What it says on the tin.
This commit is contained in:
parent
7fc901d1b3
commit
6e9f06fc9f
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/JanDeVisser
Commit: 6e9f06fc9f
Pull-request: https://github.com/SerenityOS/serenity/pull/11835
Reviewed-by: https://github.com/trflynn89 ✅
5 changed files with 166 additions and 7 deletions
|
@ -111,12 +111,8 @@ class SQLResult : public Core::Object {
|
|||
C_OBJECT(SQLResult)
|
||||
|
||||
public:
|
||||
void insert(Tuple const& row, Tuple const& sort_key)
|
||||
{
|
||||
m_has_results = true;
|
||||
m_result_set.insert_row(row, sort_key);
|
||||
}
|
||||
|
||||
void insert(Tuple const& row, Tuple const& sort_key);
|
||||
void limit(size_t offset, size_t limit);
|
||||
SQLCommand command() const { return m_command; }
|
||||
int updated() const { return m_update_count; }
|
||||
int inserted() const { return m_insert_count; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue