2017 © Pedro Peláez
 

library pgsql-triggers

Dbmover plugin for PostgreSQL-specific trigger (re)creation

image

dbmover/pgsql-triggers

Dbmover plugin for PostgreSQL-specific trigger (re)creation

  • Thursday, May 4, 2017
  • by monomelodies
  • Repository
  • 1 Watchers
  • 0 Stars
  • 87 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

Dbmover\PgsqlTriggers

PostgreSQL-specific trigger (re)creation for DbMover, (*1)

Installation

$ composer require dbmover/pgsql-triggers
This package is part of the `dbmover/pgsql` meta-package.

Usage

See dbmover/core for general DbMover usage instructions., (*2)

Notes

In PostgreSQL, a trigger is simply a reference to an existing function. (Re)creation of the functions associated with your triggers is handled by the dbmover/pgsql-procedures plugin (also included in dbmover/pgsql)., (*3)

Or, to be explicit:, (*4)

-- This is handled by `dbmover/pgsql-procedures`:
CREATE FUNCTION foo_after_insert() RETURNS "trigger" AS $$
BEGIN
    -- do stuff...
    RETURN NEW;
END;
$$ LANGUAGE 'plpgsql';

-- This is handled by the `dbmover/pgsql-triggers` plugin:
CREATE TRIGGER foo_after_insert AFTER INSERT ON foo FOR EACH ROW EXECUTE PROCEDURE foo_after_insert();

Contributing

See dbmover/core., (*5)

The Versions

04/05 2017

dev-master

9999999-dev

Dbmover plugin for PostgreSQL-specific trigger (re)creation

  Sources   Download

MIT

The Requires

 

by Marijn Ophorst

04/05 2017

0.6.4

0.6.4.0

Dbmover plugin for PostgreSQL-specific trigger (re)creation

  Sources   Download

MIT

The Requires

 

by Marijn Ophorst

24/04 2017

0.6.3

0.6.3.0

Dbmover plugin for PostgreSQL-specific trigger (re)creation

  Sources   Download

MIT

The Requires

 

by Marijn Ophorst

16/04 2017

0.6.2

0.6.2.0

Dbmover plugin for PostgreSQL-specific trigger (re)creation

  Sources   Download

MIT

The Requires

 

by Marijn Ophorst

15/04 2017

0.6.1

0.6.1.0

Dbmover plugin for PostgreSQL-specific trigger (re)creation

  Sources   Download

MIT

The Requires

 

by Marijn Ophorst

15/04 2017

0.6.0

0.6.0.0

Dbmover plugin for PostgreSQL-specific trigger (re)creation

  Sources   Download

MIT

The Requires

 

by Marijn Ophorst