Skip to content

MySQL OAF provider#2004

Merged
tomkralidis merged 10 commits into
geopython:masterfrom
C-Loftus:mysql_provider
Jun 9, 2025
Merged

MySQL OAF provider#2004
tomkralidis merged 10 commits into
geopython:masterfrom
C-Loftus:mysql_provider

Conversation

@C-Loftus

Copy link
Copy Markdown
Contributor

Overview

  • Adds a MySQL OAF provider with associated tests
    • MySQL is very similar to postgis but doesn't support the same geospatial functions so it needs some different underlying behavior
  • This PR keeps all existing postgres functionality; in doing so it puts all core sql functionality into a base class that both postgres and mysql providers can inherit from; (this could be used for other sql providers in the future if desired)
  • Fixed formatting in existing postgis provider to follow the rest of the project (single quotes etc)

Related Issue / discussion

N/A

Additional information

N/A

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

C-Loftus and others added 2 commits April 24, 2025 15:53
- mysql provider and associated tests
- refactor postgres and mysql to use a shared base class that they both inherit from
- handle geometry / encoding necessary to use mysql wity sqlalchemy

---------

Co-authored-by: Benjamin Webb <40066515+webb-ben@users.noreply.github.com>
Comment thread pygeoapi/provider/sql.py Outdated
Comment thread pygeoapi/provider/sql.py Outdated
Comment thread pygeoapi/provider/sql.py Outdated
Comment thread pygeoapi/provider/sql.py Outdated
Comment thread pygeoapi/provider/sql.py Outdated
Comment thread pygeoapi/provider/sql.py Outdated
Comment thread tests/test_mysql_provider.py Outdated
C-Loftus and others added 3 commits May 5, 2025 16:47
Co-authored-by: Benjamin Webb <40066515+webb-ben@users.noreply.github.com>
Co-authored-by: Benjamin Webb <40066515+webb-ben@users.noreply.github.com>
Co-authored-by: Benjamin Webb <40066515+webb-ben@users.noreply.github.com>
@webb-ben webb-ben requested a review from a team June 2, 2025 23:22
@webb-ben webb-ben requested review from tomkralidis and webb-ben June 9, 2025 15:27
@webb-ben webb-ben added the OGC API - Features OGC API - Features label Jun 9, 2025
@tomkralidis tomkralidis added this to the 0.21.0 milestone Jun 9, 2025
@tomkralidis tomkralidis merged commit 8346115 into geopython:master Jun 9, 2025
4 checks passed
webb-ben added a commit to internetofwater/pgedr that referenced this pull request Jun 24, 2025
Unpin pygeoapi now that changes are in core (geopython/pygeoapi#2004)
webb-ben added a commit to internetofwater/pgedr that referenced this pull request Jun 24, 2025
* Unpin pygeoapi version

Unpin pygeoapi now that changes are in core (geopython/pygeoapi#2004)

* Fix CI / distribution
webb-ben added a commit to internetofwater/pgedr that referenced this pull request Jun 30, 2025
* Unpin pygeoapi version

Unpin pygeoapi now that changes are in core (geopython/pygeoapi#2004)

* Fix CI / distribution

* Update README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OGC API - Features OGC API - Features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants