Skip to main content
Participant
Aug 23, 2022 10:23 PM UTC
Question

Is there a gateway that monitors database changes (for example, new table records?)

 


Hi everybody,

 

I look for a gateway that watches changes in a database (e.g., insertions of records into a table, etc.), just like DirectoryWatcher monitors in a directory for files when they are created, modified, or deleted.

 

Which of the existing CF gateways is most suited for this purpose? or might it work with a few changes???

Is there a bespoke CF gateway that does this?

 

Thank you in advance.

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

BKBK
Community Expert
Community Expert
Sep 3, 2022 12:56 PM UTC

This question was asked here - almost word for word - two months ago: https://community.adobe.com/t5/coldfusion-discussions/is-there-gateway-watching-changes-in-a-database-e-g-new-table-records/m-p/12993117 

 

ColdFusion hasn't changed much since then. 🙂

Translate
Inspiring
Aug 31, 2022 5:28 PM UTC

Sounds like you want an insert trigger.  If you have a created timestamp column  you could monitor new records with a schedule task that looks for new records at some interval.

Translate
Charlie Arehart
Community Expert
Community Expert
Aug 23, 2022 11:15 PM UTC

No cf gateway will support that. There are ways to audit such things from the db side--which makes sense all the more if you may have such db changes caused by other than the cf code.

Translate
/Charlie (troubleshooter, carehart. org)
AXcrystallis
Known Participant
Aug 24, 2022 12:14 AM UTC

Thank you Charlie for your response. You are right, through db it would much easier.

Translate
Charlie Arehart
Community Expert
Community Expert
Aug 24, 2022 1:41 AM UTC

Great to hear, and glad to help. I notice another user started the thread, how2557215989vj. Is that you as well, perhaps ?

Translate
/Charlie (troubleshooter, carehart. org)