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

Include support for postgres #1

Open
2 tasks
apotek opened this issue Jan 12, 2024 · 0 comments
Open
2 tasks

Include support for postgres #1

apotek opened this issue Jan 12, 2024 · 0 comments
Assignees

Comments

@apotek
Copy link
Collaborator

apotek commented Jan 12, 2024

Description

Currently the plugin only supports mysql/mariadb databases. How can we abstract the code in order to more flexibly support other db engines. We start with one: postgres, and the abstraction required to support it should get us into a place where this can then more easily be expanded into other database engines.

Issue Owner

@apotek

Acceptance Criteria

Transparently be able to invoke ddev dblog on|off|tail with postgres using a minimum of conditionals (or none) in the code.

Tests should be able to be run successfully for mariadb/mysql/postgres

Proposed Solution

A user should be able to install and invoke dblog without caring which database is actually installed.

  • Probably we will use the environment to define the kind of engine
  • Probably we will create functions or includes for capturing the log state and for setting the log state, which can dynamically be invoked.
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

1 participant