Crates.io | pg_str |
lib.rs | pg_str |
version | 0.2.1 |
source | src |
created_at | 2022-01-31 02:35:56.610341 |
updated_at | 2022-01-31 03:47:50.045621 |
description | Adds str functions to Postgresql via an extension. |
homepage | https://github.com/abumni/pg_str |
repository | https://github.com/abumni/pg_str |
max_upload_size | |
id | 524323 |
size | 7,914 |
A better way of handling string manipulation and transformations in Postgresql.
Function api and behavior is inspired by those available in the Laravel web framework: https://laravel.com/docs/8.x/helpers#strings-method-list
git clone git@github.com:abumni/pg_str
cd pg_str
cargo pgx package # run cargo install pgx first
sudo make install # adjust Makefile if using different version of postgresql than 13.
This puts the binaries and sql into the right folder location. Next you need to create the extension in postgresql:
psql
> create extension pg_str; # installs functions in a schema named 'str'
> select str.markdown('# Hello '
|| str.snake('pg str')
|| '- ~~using programming language for str manipulations~~
- **do it all in postgresql** ');