Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main into rebase #54

Merged
merged 65 commits into from
Dec 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
2923b7b
Simplification des commentaires de fichiers et classes.
noelma Feb 28, 2021
7addabc
#39 Ajout d'un pilote Igbinary .
noelma Feb 28, 2021
74a2d94
Refactoring, utilisation de constantes pour les jointures.
noelma Feb 28, 2021
24c4ff4
Revue de code.
noelma Feb 28, 2021
92777da
Mise à jour des fichiers README et USAGE.
noelma Feb 28, 2021
fd71b2c
Test, ajout des tests pour tous les pilotes.
noelma Feb 28, 2021
345dd8d
#40 Simplification de l'instruction order by.
noelma Mar 2, 2021
add24bb
#41 Refonte de la méthode lists().
noelma Mar 2, 2021
abb7d35
Simplification des méthodes du pilote.
noelma Mar 2, 2021
2cfeee7
L'argument $length des méthodes char() et string() ne prend plus en c…
noelma Mar 2, 2021
0565eaa
Revue de code.
noelma Mar 2, 2021
367e2e2
#41 Refonte de la méthode lists().
noelma Mar 2, 2021
85cab6e
Refactor, calcule de la somme de la limite et de l'offset à leurs déc…
noelma Mar 9, 2021
03b91fc
Ajout de la configuration de phpStan.
noelma Mar 9, 2021
32b359b
Refactor, simplification du code.
noelma Mar 9, 2021
2bceec8
Refactor, mise à jour des commentaires.
noelma Mar 9, 2021
3dd948b
Refactor, simplification des drivers.
noelma Mar 14, 2021
8e1822d
Remove, suppression de l'utilisation de sous requêtes pour la clause …
noelma Mar 14, 2021
a65da12
Revue de code.
noelma Mar 14, 2021
86bf680
#42 Correction dans les règles de manipulations du schéma des tables.
noelma Apr 18, 2021
94592a8
Utilisation de constantes pour les types de données, les opérations e…
noelma Apr 18, 2021
ede33df
Corrections phpStan.
noelma Apr 18, 2021
27b9f12
Changement dans le nom de la méthode setIncrement.
noelma Apr 18, 2021
1059261
Simplification des tests avec data provider.
noelma Apr 18, 2021
6cac63b
Fin du support php5.5
noelma Apr 18, 2021
77f4e46
#43 Support php7.2 minimum
noelma Apr 23, 2021
54e7bff
Revue de code.
noelma Apr 29, 2021
959ae40
Mise à jour phpUnit 8
noelma Apr 29, 2021
f145b9c
Utilisation de phpstan dans la CI
noelma Apr 29, 2021
0757d13
Ajout du support php8
noelma Apr 29, 2021
6b9a1f1
Mise à jour de la documentation.
noelma May 1, 2021
a15336c
feat: php-cs-fixer update
noelma Nov 7, 2021
d122b82
feat: the binary files must be at the root of the project.
noelma Nov 7, 2021
bbc6c05
refactor: move execution tests to a separate class
noelma Nov 11, 2021
3da1f0b
refactor: query string and tests
noelma Nov 11, 2021
6f09fde
refactor: move the tests to the unit directory
noelma Nov 11, 2021
0bdfcd0
fix: add a return and a type of parameter to anonymous functions
noelma Nov 11, 2021
3fdc2d6
test: exception message
noelma Nov 13, 2021
374b15e
feat: add GitHub actions (#44)
noelma Nov 14, 2021
777994f
feat: update phpstan 1.1 and fix data types
noelma Nov 21, 2021
f1d499b
refactor: moving where method to parent class
noelma Nov 23, 2021
8a74ef0
feat: manage tables and fields as objects (#45)
noelma Dec 4, 2021
e48b771
feat: adding group methods to the where object (#46)
noelma Dec 4, 2021
8c24ccc
feat: strict type for phpstan
noelma Dec 5, 2021
c1cfd9a
fix: use prefixed tags phpstan
noelma Dec 8, 2021
7b4b6e8
refactor: rename column names with more precision
noelma Dec 8, 2021
479d1a2
feat: add rector in ci (#48)
noelma Dec 9, 2021
c45b119
refactor: replace the expected data in the right place
noelma Dec 9, 2021
614c016
feat: add the return of queries executed in QFFQL (#49)
noelma Dec 11, 2021
6bbf9a2
refactor: code review
noelma Dec 11, 2021
289a85d
chore: used the global PHP-cs-fixer configuration
noelma Dec 12, 2021
5ab3a37
fix: return null for fetch
noelma Apr 5, 2022
524d77c
chore: configuration update for rector
noelma Jul 5, 2022
51067cb
fix: add phpcs diff option for CI
noelma Jul 5, 2022
9b9a106
fix(test): return null for fetch
noelma Jul 26, 2022
4a5b05d
fix: type checking for msgpack format
noelma Jul 26, 2022
dde2c93
fix: does not modify the data if the type does not change
noelma Jul 26, 2022
bff2750
fix: code coverage in github actions
noelma Jul 26, 2022
d15a047
chore: added Soosyze as a namespace prefix
noelma Jul 27, 2022
6578d17
chore: readme update
noelma Jul 27, 2022
0cac436
chore: doc update
noelma Jul 27, 2022
19f8725
chore: gitattributes update
noelma Jul 27, 2022
df88e79
feat: add make commands
noelma Aug 30, 2022
db92b42
ci: supports php 8.2
noelma Dec 10, 2022
8862e63
fix: vérifie si le nombre de colonne correspond aux valeurs insérée
noelma Dec 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
/tests export-ignore
.coveralls.yml export-ignore
.gitattributes export-ignore
.github export-ignore
.gitignore export-ignore
.php_cs.dist export-ignore
.travis.yml export-ignore
.php-cs-fixer.dist.php export-ignore
Makefile export-ignore
phpdoc.dist.xml export-ignore
phpunit.xml export-ignore
phpunit.xml.dist export-ignore
phpstan.neon.dist export-ignore
rector.php export-ignore
USAGE.md export-ignore
README_fr.md export-ignore
README_fr.md export-ignore
55 changes: 55 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Tests

on: [push, pull_request]

jobs:
tests:
name: Tests PHP ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
experimental: [false]
include:
- coverage: --no-coverage
- php: 7.2
analysis: true
coverage: --coverage-clover clover.xml

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug

- name: Install dependencies with Composer
uses: ramsey/composer-install@v1

- name: Coding standards
if: matrix.analysis
run: bin/php-cs-fixer fix --ansi --dry-run --using-cache=no -v --diff

- name: Static analysis
if: matrix.analysis
run: bin/phpstan --memory-limit=1G analyse

- name: Unit tests
run: bin/phpunit ${{ matrix.coverage }}

- name: Refactoring
if: matrix.analysis
run: bin/rector --dry-run

- name: Upload coverage results to Coveralls
if: matrix.analysis
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer require php-coveralls/php-coveralls -n -W
bin/php-coveralls --coverage_clover=clover.xml -v
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Repertory
/.scannerwork/
/bin/
/build/
/nbproject/
/vendor/
Expand All @@ -8,4 +9,4 @@
/*.lock
/*.phar
/*.properties
/.php_cs.cache
/*.cache
10 changes: 10 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude('build')
->in(__DIR__);

$config = new Soosyze\PhpCsFixer\Config();
$config->setFinder($finder);

return $config;
106 changes: 0 additions & 106 deletions .php_cs.dist

This file was deleted.

32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

91 changes: 91 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
SHELL=bash
SOURCE_DIR = $(shell pwd)
BIN_DIR = ${SOURCE_DIR}/bin
COMPOSER = composer

_CYAN=\033[36m
_GREEN=\033[32m
_END=\033[0m

define printSection
@printf "${_CYAN}\n══════════════════════════════════════════════════\n${_END}"
@printf "${_CYAN} $1 ${_END}"
@printf "${_CYAN}\n══════════════════════════════════════════════════\n${_END}"
endef

# _ _ _
# | | | | | |
# | |_| | ___| |_ __
# | _ |/ _ \ | '_ \
# | | | | __/ | |_) |
# \_| |_/\___|_| .__/
# | |
# |_|

.PHONY: help
help: ## Displays the list of commands
$(call printSection,HELP)
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "${_GREEN}%-20s${_END} %s\n", $$1, $$2}' \
| sed -e 's/##//'

# _____
# / __ \
# | / \/ ___ _ __ ___ _ __ ___ ___ ___ _ __
# | | / _ \| '_ ` _ \| '_ \ / _ \/ __|/ _ \ '__|
# | \__/\ (_) | | | | | | |_) | (_) \__ \ __/ |
# \____/\___/|_| |_| |_| .__/ \___/|___/\___|_|
# | |
# |_|

.PHONY: install
install: clean-vendor install-vendor ## Install the project

.PHONY: clean-vendor
clean-vendor: ## Remove composer dependencies
$(call printSection,CLEAN VENDOR)
rm -rf ${SOURCE_DIR}/vendor

.PHONY: install-vendor
install-vendor: ${SOURCE_DIR}/vendor/composer/installed.json ## Install composer dependencies

${SOURCE_DIR}/vendor/composer/installed.json:
$(call printSection,INSTALL VENDOR)
$(COMPOSER) --no-interaction install --ansi --no-progress --prefer-dist

# _____ _ _ _
# | _ | | (_) |
# | | | |_ _ __ _| |_| |_ _ _
# | | | | | | |/ _` | | | __| | | |
# \ \/' / |_| | (_| | | | |_| |_| |
# \_/\_\\__,_|\__,_|_|_|\__|\__, |
# __/ |
# |___/

.PHONY: cs-fix
cs-fix: ## Checks if code style is compliant
$(call printSection,PHP-CS-FIXER)
${BIN_DIR}/php-cs-fixer fix

.PHONY: rector
rector: ## Checks if the quality of the code is compliant
$(call printSection,RECTOR)
${BIN_DIR}/rector process --dry-run

.PHONY: phpstan
phpstan: ## Check if the data types are compliant
$(call printSection,PHPSTAN)
${BIN_DIR}/phpstan --memory-limit=1G analyse

# _____ _
# |_ _| | |
# | | ___ ___| |_
# | |/ _ \/ __| __|
# | | __/\__ \ |_
# \_/\___||___/\__|

.PHONY: test
test: ## Run unit tests
$(call printSection,TEST phpunit)
${BIN_DIR}/phpunit
Loading