Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bluecolor/pgutil

postgres utility functions
https://github.com/bluecolor/pgutil

Last synced: about 1 month ago
JSON representation

postgres utility functions

Awesome Lists containing this project

README

        

- create util schema

```sql
CREATE SCHEMA util
```

- create functions under `functions`

# example usage:

- create a demo table
```sql
create table util.dropme ( -- can be any name
a text
);
```

- call the drop method from util

```sql
DO $$
BEGIN
perform util.drop_table('util.dropme');
END;
$$;

```

- see the logs with:
```sql
select * from util.logs
```