From 73ab46a65e3be51493d33fa7b591d9013059e790 Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Mon, 8 Jan 2024 17:28:18 -0500 Subject: [PATCH] Add PGXN `META.json` file See the [HOWTO](https://manager.pgxn.org/howto) to release pg_savior on [PGXN](https://pgxn.org). Essentially: * [Create an account](https://manager.pgxn.org/account/register) and wait for approval (shouldn't take long) * `git archive --format zip --prefix=pg_savior-1.0.0/ -o pg_savior-1.0.0.zip HEAD` * [Upload](https://manager.pgxn.org/upload) the file --- META.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 META.json diff --git a/META.json b/META.json new file mode 100644 index 0000000..bc75e84 --- /dev/null +++ b/META.json @@ -0,0 +1,45 @@ +{ + "name": "pg_savior", + "abstract": "Prevent accidental data loss", + "description": "A PostgreSQL extension designed to prevent accidental data loss due to non-parameterized DELETE queries without a WHERE clause.", + "version": "1.0.0", + "maintainer": [ + "viggy28 " + ], + "license": "postgresql", + "provides": { + "pg_savior": { + "abstract": "Prevent accidental data loss", + "file": "pg_savior--1.0.0.sql", + "docfile": "README.md", + "version": "1.0.0" + } + }, + "prereqs": { + "runtime": { + "requires": { + "PostgreSQL": "10.0.0" + } + } + }, + "resources": { + "bugtracker": { + "web": "https://github.com/viggy28/pg_savior/issues" + }, + "repository": { + "url": "git://github.com/viggy28/pg_savior.git", + "web": "https://github.com/viggy28/pg_savior", + "type": "git" + } + }, + "generated_by": "David E. Wheeler", + "meta-spec": { + "version": "1.0.0", + "url": "https://pgxn.org/meta/spec.txt" + }, + "tags": [ + "delete", + "data loss", + "safe" + ] +} diff --git a/README.md b/README.md index 4ec5a71..1361db5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ pg_savior is a PostgreSQL extension designed to prevent accidental data loss due ## Installation -1. Clone the repository. +Source: + +1. Clone the repository or [download from PGXN](https://pgxn.org/extension/pg_savior) 2. Navigate to the repository directory. 3. Run `make` to build the extension. 4. Run `make install` to install the extension.