Add ORDER BY and LIMIT OFFSET methods #8

Merged
vlw merged 2 commits from refs/pull/8/head into master 2023-10-16 13:14:21 +02:00
vlw commented 2023-10-16 13:03:09 +02:00 (Migrated from codeberg.org)

This PR adds a new order_by() method which can be used to ORDER BY a query in the get() method. This PR also allows get()'s $limit argument to accept an assoc array of OFFSET => LIMIT to access a specific row range.

Also contains a refactor for the query executing and preparation methods into a separate class and file.

This PR adds a new `order_by()` method which can be used to `ORDER BY` a query in the `get()` method. This PR also allows `get()`'s `$limit` argument to accept an assoc array of `OFFSET` => `LIMIT` to access a specific row range. Also contains a refactor for the query executing and preparation methods into a separate class and file.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/php-mysql!8
No description provided.