PostgreSQL driver for Elixir
open sourceApache-2.0free
Postgrex is the PostgreSQL driver for Elixir, and the adapter underneath Ecto's PostgreSQL support. It speaks PostgreSQL's binary protocol and encodes and decodes Elixir values to and from it automatically, covering numerics as Decimal, dates and timestamps, intervals, arrays, composite types, ranges and multiranges, UUIDs, hstore, enums, bit strings and full-text search vectors, and user-defined extensions handle any other type. It supports transactions, prepared queries and connection pools through DBConnection, and works with PostgreSQL 8.4 and later.
Problems it solves
- connect to PostgreSQL from Elixir
- run raw SQL queries against Postgres in an Elixir app without Ecto
- decode Postgres arrays, ranges and composite types into Elixir values
- add support for a custom PostgreSQL type in Elixir
- pool PostgreSQL connections in an Elixir application
Features
- binary protocol with automatic encoding and decoding
- arrays, composite types, ranges, multiranges, hstore, enums and tsvector
- user-defined type extensions
- transactions and prepared queries
- connection pools via DBConnection
- PostgreSQL 8.4 and later
Alternatives
The same job
These do what Postgrex does.
