database
database copied to clipboard
Lite & fast micro PHP database abstraction library that is **easy to use**.
Variadic functions can be confusing. It's much clearer to use arrays instead: ```diff - public static function getByType(array $queries, string ...$types): array + public static function getByType(array $queries, array $types):...
Float values stored in the SQL database are missing decimal points - looks like it's precise up to 4 decimal points. - [ ] Fix issue with floats - [x]...
- This PR will validate Fulltext index creation with a restriction on string attributes only! - Validator Index Atrributrs is not an empty field. Related issue : https://github.com/appwrite/appwrite/issues/2995
New method: `renameCollection(string $id, string $newId)` Updated adapter signature, adding `documentId`: `updateDocument(string $collection, string $documentId, Document $document)` Change to `updateDocument` was required as we now need this method to also...
Each adapter must implement the `getIntLimit()` method, but it isn't enforced due to how we interpret `$size` for integer attributes. In the case of strings, `$size` is pretty obvious -...
This PR exposes the index key limit of each database adapter and throws a Size exception when necessary. **Testing** Unit test has been added to catch this exception **Related PRs:**...
Beginnings of adding code coverage to projects using PHPUnit. This uses PCOV as the driver and updates the phpunit.xml to include filters for coverage. required PCOV: `$ pecl install pcov`...
First working draft of Find and Delete method. - I had to simplify and hack my way but it's working, mariadb DELETE with WHERE/ORDER and LIMIT not working with table...