-
Notifications
You must be signed in to change notification settings - Fork 55
Postgres support #109
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
Merged
Merged
Postgres support #109
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
6adeba6
wip
MatanYadaev 3c8f8c2
wip
MatanYadaev 721a2a3
fix postgres ci
MatanYadaev 8df2ae5
fixes
MatanYadaev b2ab8ce
backward compatibility
MatanYadaev dcb6a45
fixes
MatanYadaev d221dbb
fixes
MatanYadaev c8e1de4
fixes
MatanYadaev 536002d
fixes
MatanYadaev 6b21766
fixes
MatanYadaev 323efc1
fix ci
MatanYadaev 7fc08fe
fix ci
MatanYadaev ca2f1f1
fixes
MatanYadaev 853d889
fix ci
MatanYadaev 2a543b8
fix coverage
MatanYadaev 6b7d17c
fixes
MatanYadaev 193904e
reduce ci jobs
MatanYadaev 80c4f61
fix mariadb
MatanYadaev 327c483
fix postgres
MatanYadaev 3358295
fix ci
MatanYadaev fdaabbf
fix ci
MatanYadaev 387db18
fix ci
MatanYadaev 18259c7
fix ci
MatanYadaev e2bf520
fix ci
MatanYadaev 7840955
fix ci
MatanYadaev 1fdf47b
ci test
MatanYadaev 1f9981b
ci test
MatanYadaev 9c1fe09
fix tests
MatanYadaev 74799c4
fix tests
MatanYadaev cd70116
fixes
MatanYadaev c996a28
fixes
MatanYadaev 5549552
fixes
MatanYadaev d5407c1
ci test
MatanYadaev 8a30e19
ci test
MatanYadaev 1eb07b1
ci test
MatanYadaev 4c96d7d
ci test
MatanYadaev 84f30eb
ci test
MatanYadaev 1388b6f
ci test
MatanYadaev 46275b1
ci test
MatanYadaev 0f607b3
ci test
MatanYadaev a26616d
ci test
MatanYadaev 85ab828
ci test
MatanYadaev 004c7ff
ci test
MatanYadaev 030d366
ci test
MatanYadaev 77c9b8c
ci test
MatanYadaev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| name: Tests coverage | ||
|
|
||
| on: [ push, pull_request ] | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| test: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| name: Lint | ||
|
|
||
| on: [ push, pull_request ] | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| php-cs-fixer: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| .idea | ||
| .php-cs-fixer.cache | ||
| .phpunit.cache | ||
| .phpunit.result.cache | ||
| build | ||
| composer.lock | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <component name="ProjectRunConfigurationManager"> | ||
| <configuration default="false" name="Test - Postgres" type="PestRunConfigurationType"> | ||
| <CommandLine> | ||
| <envs> | ||
| <env name="DB_CONNECTION" value="pgsql" /> | ||
| <env name="DB_PORT" value="5433" /> | ||
| </envs> | ||
| </CommandLine> | ||
| <option name="pestRunnerSettings"> | ||
| <PestRunner method="" scope="ConfigurationFile" /> | ||
| </option> | ||
| <option name="runnerSettings"> | ||
| <PhpTestRunnerSettings method="" scope="ConfigurationFile" /> | ||
| </option> | ||
| <method v="2" /> | ||
| </configuration> | ||
| </component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace MatanYadaev\EloquentSpatial\Doctrine; | ||
|
|
||
| use Doctrine\DBAL\Platforms\AbstractPlatform; | ||
| use Doctrine\DBAL\Types\Type; | ||
|
|
||
| /** @codeCoverageIgnore */ | ||
| class GeographyType extends Type | ||
| { | ||
| public function getSQLDeclaration(array $column, AbstractPlatform $platform): string | ||
| { | ||
| return 'geography'; | ||
| } | ||
|
|
||
| public function getName(): string | ||
| { | ||
| return 'geography'; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace MatanYadaev\EloquentSpatial\Doctrine; | ||
|
|
||
| use Doctrine\DBAL\Platforms\AbstractPlatform; | ||
| use Doctrine\DBAL\Types\Type; | ||
|
|
||
| /** @codeCoverageIgnore */ | ||
| class GeometryType extends Type | ||
| { | ||
| public function getSQLDeclaration(array $column, AbstractPlatform $platform): string | ||
| { | ||
| return 'geometry'; | ||
| } | ||
|
|
||
| public function getName(): string | ||
| { | ||
| return 'geometry'; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to run the combinations of PHP 8.2/8.1 and dependency version prefer-lowest only when DB is mysql:8.0?
In other words, all the DBs except MySQL 8 should run with PHP 8.3 and prefer-stable only.