commit e65c74797b
Author: Victor Westerlund <victor@vlw.se>
Date: Thu Jan 30 08:16:27 2025 +0000
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
commit 64c7bae3cf
Author: Victor Westerlund <victor@vlw.se>
Date: Thu Jan 16 13:53:30 2025 +0000
feat: add protected array property for where statement columns (#40)
This PR adds a compliment for the `MySQL->filter_values` property but for filter columns which can be accessed from a protected scope with `MySQL->filter_columns`
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/40
commit d5f1efb9b9
Author: Victor Westerlund <victor@vlw.se>
Date: Fri Dec 20 10:59:02 2024 +0000
feat: expose SQL class properties to protected scope (#39)
Makes sense to make these accessible when extending the MySQL class.
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/39
commit 619f43b3bf
Author: vlw <victor@vlw.se>
Date: Wed Sep 25 13:28:15 2024 +0000
fix(doc): remove reference to removed method `flatten()` from README (#38)
Closes#14
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/38
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
commit 1727247fa7
Author: vlw <victor@vlw.se>
Date: Wed Sep 25 13:27:55 2024 +0000
fix: remove `where()` method for database models (#37)
This PR removes the `where()` method which I don't think is particularly useful and also very untested since I don't use it personally at all. It's also probably better to do in-model checking for table columns **before** sending it off to this library when required anyways.
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/37
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
commit a536a3bec4
Author: vlw <victor@vlw.se>
Date: Wed Sep 25 13:27:20 2024 +0000
chore: rename of this package to "php-mysql" (#36)
The name I gave this years ago "libmysqldriver" never sat right with me.. okay it might be considered a library for mysql but it's *definitely* not a driver.
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/36
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
Merge branch 'master' into fix/order-by
commit e65c74797b
Author: Victor Westerlund <victor@vlw.se>
Date: Thu Jan 30 08:16:27 2025 +0000
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
commit 64c7bae3cf
Author: Victor Westerlund <victor@vlw.se>
Date: Thu Jan 16 13:53:30 2025 +0000
feat: add protected array property for where statement columns (#40)
This PR adds a compliment for the `MySQL->filter_values` property but for filter columns which can be accessed from a protected scope with `MySQL->filter_columns`
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/40
commit d5f1efb9b9
Author: Victor Westerlund <victor@vlw.se>
Date: Fri Dec 20 10:59:02 2024 +0000
feat: expose SQL class properties to protected scope (#39)
Makes sense to make these accessible when extending the MySQL class.
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/39
commit 619f43b3bf
Author: vlw <victor@vlw.se>
Date: Wed Sep 25 13:28:15 2024 +0000
fix(doc): remove reference to removed method `flatten()` from README (#38)
Closes#14
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/38
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
commit 1727247fa7
Author: vlw <victor@vlw.se>
Date: Wed Sep 25 13:27:55 2024 +0000
fix: remove `where()` method for database models (#37)
This PR removes the `where()` method which I don't think is particularly useful and also very untested since I don't use it personally at all. It's also probably better to do in-model checking for table columns **before** sending it off to this library when required anyways.
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/37
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
commit a536a3bec4
Author: vlw <victor@vlw.se>
Date: Wed Sep 25 13:27:20 2024 +0000
chore: rename of this package to "php-mysql" (#36)
The name I gave this years ago "libmysqldriver" never sat right with me.. okay it might be considered a library for mysql but it's *definitely* not a driver.
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/36
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
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 PR adds a compliment for the `MySQL->filter_values` property but for filter columns which can be accessed from a protected scope with `MySQL->filter_columns`
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/40
This PR removes the `where()` method which I don't think is particularly useful and also very untested since I don't use it personally at all. It's also probably better to do in-model checking for table columns **before** sending it off to this library when required anyways.
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/37
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
The name I gave this years ago "libmysqldriver" never sat right with me.. okay it might be considered a library for mysql but it's *definitely* not a driver.
Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/36
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>