Skip to content

Postgres extension for common conversions when working with spatial data.

License

Notifications You must be signed in to change notification settings

rustprooflabs/convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert: Common conversion functions

Convert is a Postgres extension providing common conversion functions, such as meters to feet or miles to kilometers.

The convert extension is built using the Rust pgrx framework.

Creating installer for your system

Currently no pre-packaged installers are available. The following steps walk through creating a package on a typical Ubuntu based system with Postgres 14. These steps assume cargo pgrx is already installed.

The fpm step requires the fpm Ruby gem.

sudo apt install ruby-rubygems
sudo gem i fpm

Timing note: cargo pgrx package takes ~ 2 minutes on my main dev machine.

cargo pgrx package --pg-config /usr/lib/postgresql/15/bin/pg_config
cd target/release/convert-pg15/

find ./ -name "*.so" -exec strip {} \;
OUTFILE=convert.deb
rm ${OUTFILE} || true
fpm \
  -s dir \
  -t deb -n convert \
  -v 0.0.4-dev.1 \
  --deb-no-default-config-files \
  -p ${OUTFILE} \
  -a amd64 \
  .

sudo dpkg -i --force-overwrite ./convert.deb

About

Postgres extension for common conversions when working with spatial data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published