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

Adding support for other databases #1209

Open
KieranJeffreySmart opened this issue Nov 19, 2024 · 0 comments
Open

Adding support for other databases #1209

KieranJeffreySmart opened this issue Nov 19, 2024 · 0 comments

Comments

@KieranJeffreySmart
Copy link

KieranJeffreySmart commented Nov 19, 2024

Problem:
I don't want to use postgresql to store the datasets. I assume to have already imported the datasets from csv into my own instance of MS SQL Server and still be compatible with the postcodes.io api by using scripts as described in the posctodes.io documentation

Solution:

  • Implement an adaptor pattern into app/models/base.ts to abstract the database operations, using a plugin db_controller to abstract specific database logic and allow new database controllers to be developed and added by the community
  • Introduce configuration to app/config/config.ts to support more complex database parameters and select a db controller

I realise this might be incredibly naive as a request, however I am probably going to give it a go myself and would be happy to help find a better solution to my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant