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

How to change the database management system without patching "ocsigen-start" #632

Open
moyodiallo opened this issue Oct 7, 2021 · 1 comment

Comments

@moyodiallo
Copy link

Hi. I'm new and I'm coding an app using "ocsigen-start".
I'm using another database management system.

Is it a good Idea to Functorize all part concerning the db and create
new template where the user is free to choose the database management system.

I think, It's will open some possibilities like having many templates for other DB.

@jrochel
Copy link

jrochel commented Oct 7, 2021

It might be a good idea, but I cannot say for sure at this moment.

On a related note I'd like to point out that Ocsigen already has some support for parametrising over different database systems. You might want to take a closer look at ocsipersist which offers a simplified interface to (currently) three database systems: PostgreSQL, DBM, and SQLite.

Ocsipersist will however soon be reworked and externalised into its own set of libraries, which will simplify the adding of more DB backends (we plan to release a DynamoDB package soon).

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

No branches or pull requests

2 participants