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
- Host: GitHub
- URL: https://github.com/rodo/pg_modnar
- Owner: rodo
- License: gpl-3.0
- Created: 2024-11-05T09:25:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T11:30:20.000Z (over 1 year ago)
- Last Synced: 2024-11-05T11:38:49.557Z (over 1 year ago)
- Language: PLpgSQL
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```