├── .editorconfig ├── .github └── workflows │ ├── phpstan.yml │ └── test.yml ├── .gitignore ├── .phpstan-baseline.neon ├── LICENSE ├── README.md ├── composer.json ├── infection.json.dist ├── phpstan-baseline.neon ├── phpstan-use-baseline.neon ├── phpstan.dist.neon ├── phpunit.xml.dist ├── src ├── AbstractStaticQuery.php ├── PDOAggregate.php ├── PDOInterface.php ├── PDOStatementInterface.php ├── Processor │ ├── CallbackProcessor.php │ ├── IfBlock.php │ ├── PregCallbackReplacer.php │ └── SimpleSingleLine.php ├── ProcessorInterface.php ├── Query.php ├── QueryBuilder.php ├── Replacer │ ├── ForBlock.php │ └── Placeholder.php ├── ReplacerInterface.php ├── StaticQueryExecuteTrait.php ├── Type │ └── PgIdentifier.php └── TypeInterface.php ├── tests ├── DummyPDO.php ├── DummyPDOStatement.php ├── Processor │ ├── CallbackProcessorTest.php │ └── IfBlockTest.php ├── QueryTest.php ├── Replacer │ ├── ForBlockTest.php │ ├── PlaceholderTest.php │ └── Sample │ │ └── DummyType.php ├── SQLite │ └── QueryTest.php ├── Type │ └── PgIdentifierTest.php ├── bootstrap.php └── fuji36_01.jpg └── tools ├── .infection ├── .gitignore └── composer.json ├── .phpstan ├── composer.json └── setup ├── infection └── phpstan /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/phpstan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/.github/workflows/phpstan.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/.gitignore -------------------------------------------------------------------------------- /.phpstan-baseline.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/.phpstan-baseline.neon -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/composer.json -------------------------------------------------------------------------------- /infection.json.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/infection.json.dist -------------------------------------------------------------------------------- /phpstan-baseline.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/phpstan-baseline.neon -------------------------------------------------------------------------------- /phpstan-use-baseline.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/phpstan-use-baseline.neon -------------------------------------------------------------------------------- /phpstan.dist.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/phpstan.dist.neon -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/AbstractStaticQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/AbstractStaticQuery.php -------------------------------------------------------------------------------- /src/PDOAggregate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/PDOAggregate.php -------------------------------------------------------------------------------- /src/PDOInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/PDOInterface.php -------------------------------------------------------------------------------- /src/PDOStatementInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/PDOStatementInterface.php -------------------------------------------------------------------------------- /src/Processor/CallbackProcessor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/Processor/CallbackProcessor.php -------------------------------------------------------------------------------- /src/Processor/IfBlock.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/Processor/IfBlock.php -------------------------------------------------------------------------------- /src/Processor/PregCallbackReplacer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/Processor/PregCallbackReplacer.php -------------------------------------------------------------------------------- /src/Processor/SimpleSingleLine.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/Processor/SimpleSingleLine.php -------------------------------------------------------------------------------- /src/ProcessorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/ProcessorInterface.php -------------------------------------------------------------------------------- /src/Query.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/Query.php -------------------------------------------------------------------------------- /src/QueryBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/QueryBuilder.php -------------------------------------------------------------------------------- /src/Replacer/ForBlock.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/Replacer/ForBlock.php -------------------------------------------------------------------------------- /src/Replacer/Placeholder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/Replacer/Placeholder.php -------------------------------------------------------------------------------- /src/ReplacerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/ReplacerInterface.php -------------------------------------------------------------------------------- /src/StaticQueryExecuteTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/StaticQueryExecuteTrait.php -------------------------------------------------------------------------------- /src/Type/PgIdentifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/Type/PgIdentifier.php -------------------------------------------------------------------------------- /src/TypeInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/src/TypeInterface.php -------------------------------------------------------------------------------- /tests/DummyPDO.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/DummyPDO.php -------------------------------------------------------------------------------- /tests/DummyPDOStatement.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/DummyPDOStatement.php -------------------------------------------------------------------------------- /tests/Processor/CallbackProcessorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/Processor/CallbackProcessorTest.php -------------------------------------------------------------------------------- /tests/Processor/IfBlockTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/Processor/IfBlockTest.php -------------------------------------------------------------------------------- /tests/QueryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/QueryTest.php -------------------------------------------------------------------------------- /tests/Replacer/ForBlockTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/Replacer/ForBlockTest.php -------------------------------------------------------------------------------- /tests/Replacer/PlaceholderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/Replacer/PlaceholderTest.php -------------------------------------------------------------------------------- /tests/Replacer/Sample/DummyType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/Replacer/Sample/DummyType.php -------------------------------------------------------------------------------- /tests/SQLite/QueryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/SQLite/QueryTest.php -------------------------------------------------------------------------------- /tests/Type/PgIdentifierTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/Type/PgIdentifierTest.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/bootstrap.php -------------------------------------------------------------------------------- /tests/fuji36_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tests/fuji36_01.jpg -------------------------------------------------------------------------------- /tools/.infection/.gitignore: -------------------------------------------------------------------------------- 1 | /composer.lock 2 | /vendor/ 3 | -------------------------------------------------------------------------------- /tools/.infection/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tools/.infection/composer.json -------------------------------------------------------------------------------- /tools/.phpstan/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BaguettePHP/TetoSQL/HEAD/tools/.phpstan/composer.json -------------------------------------------------------------------------------- /tools/.phpstan/setup: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -euxo pipefail 4 | 5 | cd $(dirname "${BASH_SOURCE:-$0}") 6 | composer install 7 | -------------------------------------------------------------------------------- /tools/infection: -------------------------------------------------------------------------------- 1 | .infection/vendor/bin/infection -------------------------------------------------------------------------------- /tools/phpstan: -------------------------------------------------------------------------------- 1 | .phpstan/vendor/bin/phpstan --------------------------------------------------------------------------------