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

Add Postgresql task type #27

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Add Postgresql task type #27

merged 1 commit into from
Aug 19, 2024

Conversation

Sda79
Copy link
Contributor

@Sda79 Sda79 commented Aug 17, 2024

Add PostgreSQL tasks

SIPssert only supports MySQL database. I added PostgreSQL tasks in a very similar way to MySQL.
I am aware that it surely need improvement, at least documentation, please tell what to improve/fix.

As MySQL you can add a root password with postgres_password and every SQL files in the scenario directory will be loaded by Postgres at startup.

A simple example scenario could be :

---
timeout: 60

tasks:
 - name: PostgreSQL
   type: postgresql
   stop_timeout: 5
   ready:
     wait: 50

 - name: Opensips
   type: opensips
   require:
     ready: PostgreSQL

@razvancrainea razvancrainea merged commit 16ff5e0 into OpenSIPS:main Aug 19, 2024
@razvancrainea
Copy link
Member

This is great, thanks a lot for your contribution!

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.

2 participants