PL/Swift allows you to write custom SQL functions and types for the PostgreSQL database server in the Swift programming language.
*Bringing Swift to the Backend of the Backend's Backend*Checkout PL/Swift for more information.
This repository provides a Homebrew tap (repository) from which you can easily install PL/Swift.
Got no Homebrew? Get it!
Add the PL/Swift tap and install plswift:
brew tap PL-Swift/plswift
brew install plswift
You can call swift pl validate
to make sure the installation is OK:
The Swift PostgreSQL build environment looks sound.
srcroot: /Users/helge/dev/Swift/PLSwift/PLSwift
module: PLSwift
config: debug
product: /Users/helge/dev/Swift/PLSwift/PLSwift/.build/PLSwift.so
version:
sql-setup:
pg_config: /Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
moddir: /Applications/Postgres.app/Contents/Versions/9.4/lib/postgresql
extdir: /Applications/Postgres.app/Contents/Versions/9.4/share/postgresql/extension/
PL/Swift: /usr/local
swift: 4.0.3
ERROR: Missing extension control file: PLSwift.control
ERROR: Missing setup file:
(you can ignore the ERRORs at the bottom, they are only relevant within extensions)
PL/Swift is brought to you by ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.