Heartbeat: config.HeartbeatConfig{
// For the first run of the simulation, leave this as false.
// Then set to true and rerun to see the effect of heartbeat.
Enabled: false,
Query: `INSERT INTO public.test_heartbeat_table(txt) VALUES ('hb')`,
Interval: 5 * time.Second,
},
- remove enabled and set default as true. Remove abstraction.
- set Interval as 100*time.Millisecond. Remove abstraction.
- remove query and get Table (must).
- we will get details of table and choice one column and update a specific time interval.
proposal
Heartbeat: config.HeartbeatConfig{
table: publication.Tables{
{
Name: "heartbeat_table",
Schema: "public",
},
},
proposal