Toy extension demonstrating PostgreSQL extensions in Rust, implements base36_encode as found here.
Initial heavy lifting was done over at jsoncdc, from which boilerplate code was liberaly stolen borrowed :).
- Build and start the image:
docker-compose up- Bash into it:
docker exec -it $(docker ps | grep rpgbase | awk '{print $1}') /bin/bash - Once inside make and test:
make install && PGUSER=postgres make installcheckThere you go, we now have a fully functional PG extension written in Rust, and glued together with a pinch of C.
Looking forward to any feedback :)