webhooked icon indicating copy to clipboard operation
webhooked copied to clipboard

feat: allow construction of postgres request like formatting module

Open 42atomys opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe

Actually the postgres configuration has really basic and dont allow us to do anything.

  # In which table do you want to store the data
  tableName: 'webhooks_deliveries'
  # In which column do you want to store the data (data is sent in string format on this field)
  dataField: 'raw_data'

the reflected code behind is

request := fmt.Sprintf("INSERT INTO %s(%s) VALUES ($1)", c.config.TableName, c.config.DataField)

We cant perform an update, a delete, base the updated value or inserted value on some part of the payload.

Describe the solution you'd like

To be able to use the same formating module in storages like redis and postgres to allow to do all actions according to the specs provided in the configuration

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

42atomys avatar Oct 07 '22 14:10 42atomys