mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-11-05 04:22:42 +01:00
feat: add ORDER BY statement Enum (#41)
Importable with:
```php
use vlw\MySQL\Order
```
To be used with the `MySQL->order()` method, for example:
```php
$db->for("table")->order(["column" => Order::ASC])->select("*");
```
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/41
This commit is contained in:
parent
64c7bae3cf
commit
e65c74797b
1 changed files with 8 additions and 0 deletions
8
src/Order.php
Normal file
8
src/Order.php
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace vlw\MySQL;
|
||||||
|
|
||||||
|
enum Order: string {
|
||||||
|
case ASC = "ASC";
|
||||||
|
case DESC = "DESC";
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue