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

Support for PostgreSQL database #9

Open
7 tasks
mjanez opened this issue Apr 21, 2023 · 0 comments
Open
7 tasks

Support for PostgreSQL database #9

mjanez opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@mjanez
Copy link
Owner

mjanez commented Apr 21, 2023

Metadata Repository Setup
pycsw supports the following databases:

  • SQLite3
  • PostgreSQL (without PostGIS)
  • PostgreSQL with PostGIS enabled
  • MySQL

Note
The easiest and fastest way to deploy pycsw is to use SQLite3 as the backend. To use an SQLite in-memory database, in the pycsw configuration, set repository.database to sqlite://.

Note
PostgreSQL support includes support for PostGIS functions if enabled

Note
If PostGIS is activated before setting up the pycsw/PostgreSQL database, then native PostGIS geometries will be enabled.

Steps

  • Update the script to use PostgreSQL as the backend database instead of cite.db.
  • Install and configure the psycopg2 Python package to enable PyCSW to communicate with PostgreSQL.
  • Update the .env.example and PyCSW configuration file to use PostgreSQL as the backend database.
  • Modify any database queries in the script to work with PostgreSQL syntax.
  • Test ckan2pycsw to ensure that it is working correctly with the new database backend.
  • Update any relevant documentation to reflect the changes made to the script and how to use PostgreSQL as the backend database.
  • Ensure that any dependencies or requirements for using PostgreSQL are clearly documented and included in the project's documentation or installation instructions.

Refs

@mjanez mjanez added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 21, 2023
@mjanez mjanez self-assigned this Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant