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

https://github.com/rodo/pg_modnar

Set of functions to generate random values in PostgreSQL
https://github.com/rodo/pg_modnar

Last synced: 5 months ago
JSON representation

Set of functions to generate random values in PostgreSQL

Awesome Lists containing this project

README

          

# pg_modnar
Set of functions to generate random values in PostgreSQL

## Install

To install the extension, start by defining your connections
parameters in your shell as usual.

If your connection string is well set up, the install is easy as

```
$ make install
```

## Install with pg_tle

If you work with AWS RDS you can deploy the extension with
[pg_tle](https://github.com/aws/pg_tle), to build the file to deploy
it just do :

```
$ make pgtle
```

And execute the file `pgtle.pg_modnar-0.0.1.sql` on your instance

## Functions

```
get_random_date()
get_random_firstname()
get_random_float()
get_random_inet()
get_random_integer()
get_random_integer(minimum INTEGER, maximum INTEGER)
get_random_json()
get_random_text()
get_random_text(string_length INTEGER, possible_chars TEXT)
```