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

Possibility of support for other databases #1

Open
christianwolters opened this issue Nov 20, 2020 · 1 comment
Open

Possibility of support for other databases #1

christianwolters opened this issue Nov 20, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@christianwolters
Copy link

Hi Lawrence,

I just read about your project in the moodle dev chat.

Are you using some code/api/? that prevents the use with other databases,
or are specific to MariaDB?

How complex do you think is it, to make this work with postgres?

Best regards
Christian

@llagerlof
Copy link
Owner

llagerlof commented Nov 20, 2020

Hi @christianwolters.

I am using PHP's PDO that can access many databases. However, as you know, each database has its specific set of commands to retrieve data.

Freezer needs to query some information from tables:

  • The list of database's table names.
  • The structure of each table, containing at least:
    • All table's fields and its types.
    • Which field is the auto incremented one (if has an auto incremented field)

So if I get this information I could abstract those and add other databases (postgres in this case).

Can you send me the query commands I need to run on Postgres to get the information mentioned above? This would save me a precious time.

Thank you.

@llagerlof llagerlof added the enhancement New feature or request label Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants