Skip to content

microstream-one/MSCachingWorkshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micronaut 4.8.2 Documentation


Function that needs to be added to PostgreSQL database for notification functionality

create function notify_data_change() returns trigger
    language plpgsql
as
$$
DECLARE
payload JSON;
BEGIN
  payload = json_build_object(
    'table', TG_TABLE_NAME,
    'operation', TG_OP,
    'data', row_to_json(NEW)
  );
  PERFORM pg_notify('data_changed', payload::text);
RETURN NEW;
END;
$$;

alter function notify_data_change() owner to workshopuser;

Trigger that needs to be added to the table

-- auto-generated definition
create trigger data_change_trigger
    after insert or update
    on books
    for each row
execute procedure notify_data_change();

Feature eclipsestore documentation

Feature micronaut-aot documentation

Feature serialization-jackson documentation

Feature maven-enforcer-plugin documentation

About

Caching examples with Microstream also capable to run in MSCloud on different branch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published