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

Allow for other GORM databases #43

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

wishdev
Copy link

@wishdev wishdev commented Nov 26, 2024

Adds ability to use PostgreSQL or other GORM drivers for the database

Preserve current SQLite config options while adding a section for
DSN based connections. Currently only adding PostgreSQL, however,
any GORM driver should be available to be added.

config.yaml updated to show examples of both ways to specify
database connections.
Only need the ID/Message_ID column. The tenant_id, queue_id columns
are not index and therefore PostgreSQL will not process as a
foreign key.
Extend transaction to include select statement to allow for
FOR UPDATE/SKIP LOCKED clauses to properly dequeue rows with PostgreSQL.
Move parameter addition into proper if clause. SQLite apparantly ignores extra
parameters where other databases are more strict.
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

Successfully merging this pull request may close these issues.

1 participant