Code Monkey home page Code Monkey logo

pg-history-viewer's Introduction

pg-history-viewer

QGIS plugin that helps to visualize contents of a PostgreSQL audit trigger table.

This is inspired by the Postgres 91 plus Auditor QGIS plugin.

The main features are:

  • visualization of contents of the audit table
  • advanced search on the table by means of a SQL query
    • search by type of events (insert, delete, update)
    • search by date
    • free text search in the data
  • support geometry display
  • replay of an event
  • support huge audit table by incremental loading

Screenshot

INSTALL

audit trigger functions

Audit trigger functions are well described here audit trigger table. On the behalf of QWAT's group, new features were added to audit views and replay edits. They are available here: https://github.com/Oslandia/audit_trigger. We had to fork unmaintained 2nd Quandrant's source repository https://github.com/2ndQuadrant/audit-trigger. If somehow this repository is revived, please tell us and we'll switch back to it.

To install the trigger functions, download the audit.sql file from there, and execute the sql commands in the script, either from pgadmin or PostgreSQL.

To start logging a table, here 'qwat_dr.annotationline':

qwat_sys.audit_table('qwat_dr.annotationline');

or for a view; here 'qwat_od.vw_consumptionzone':

qwat_sys.audit_view('qwat_od.vw_consumptionzone', 'true'::boolean, '{}'::text[], '{id}'::text[]);

QGIS plugin

QGIS plugin can be installed from the QGIS plugin installer or by downloading this source code and unzipping it to your QGIS plugin profile or additional plugin paths. See https://docs.qgis.org/2.14/en/docs/user_manual/plugins/plugins.html

pg-history-viewer's People

Contributors

c-marcel avatar lbartoletti avatar pblottiere avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.