Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.0.2' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Nov 22, 2022
2 parents e730500 + eca2e0b commit 1911427
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
17 changes: 10 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@

All notable changes to this project will be documented in this file. This project adhere to the [Semantic Versioning](http://semver.org/) standard.

## [unreleased] Unreleased
## [1.0.2] Unreleased

- Fix - Adjust `DB::insert()`, `DB::delete()`, `DB::update()`, and `DB::replace()` signature to match `wpdb`'s supported method signatures.
- Fix - Adjust `DB::get_var()`, `DB::get_col()`, and `DB::get_results()` signature of first arg to match `wpdb`'s signature.

## [1.0.1] 2022-09-29

- Added a `Config` class to handle overrides of the `DatabaseQueryException` and addition of a hook prefix.
- Added tests for `Config`
- More documentation
* Tweak - Added a `Config` class to handle overrides of the `DatabaseQueryException` and addition of a hook prefix.
* Tweak - Added tests for `Config`
* Docs - More documentation

## [1.0.0] 2022-08-17

- Initial version
- Documentation
- Automated tests
* Feature - Initial version
* Docs - Documentation
* Tweak - Automated tests

[1.0.0]: https://github.com/stellarwp/schema/releases/tag/1.0.0
16 changes: 8 additions & 8 deletions src/DB/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
* If a SQL error occurs a DatabaseQueryException is thrown.
*
* @method static int|bool query(string $query)
* @method static int|false insert(string $table, array $data, array|string $format)
* @method static int|false delete(string $table, array $where, array|string|null $where_format)
* @method static int|false update(string $table, array $data, array $where, array|string $format, array|string|null $where_format)
* @method static int|false replace(string $table, array $data, array|string $format)
* @method static null|string get_var(string $query = null, int $x = 0, int $y = 0)
* @method static array|object|null|void get_row(string $query = null, string $output = OBJECT, int $y = 0)
* @method static array get_col(string $query = null, int $x = 0)
* @method static array|object|null get_results(string $query = null, string $output = OBJECT)
* @method static int|false insert(string $table, array $data, array|string|null $format = null)
* @method static int|false delete(string $table, array $where, array|string|null $where_format = null)
* @method static int|false update(string $table, array $data, array $where, array|string|null $format = null, array|string|null $where_format = null)
* @method static int|false replace(string $table, array $data, array|string|null $format = null)
* @method static null|string get_var(string|null $query = null, int $x = 0, int $y = 0)
* @method static array|object|null|void get_row(string|null $query = null, string $output = OBJECT, int $y = 0)
* @method static array get_col(string|null $query = null, int $x = 0)
* @method static array|object|null get_results(string|null $query = null, string $output = OBJECT)
* @method static string get_charset_collate()
* @method static string esc_like(string $text)
* @method static string remove_placeholder_escape(string $text)
Expand Down

0 comments on commit 1911427

Please sign in to comment.