Bump version
This commit is contained in:
@@ -5,6 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
## [0.4.0.0] - 2017-01-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Allow test database to be on another host - @dsimunic
|
- Allow test database to be on another host - @dsimunic
|
||||||
- `Prefer: params=single-object` to treat payload as single json argument in RPC - @dsimunic
|
- `Prefer: params=single-object` to treat payload as single json argument in RPC - @dsimunic
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ You can use it as inspiration for test-driven server migrations in
|
|||||||
your own projects.
|
your own projects.
|
||||||
|
|
||||||
Also try other tools in the PostgREST
|
Also try other tools in the PostgREST
|
||||||
[ecosystem](http://postgrest.com/install/ecosystem).
|
[ecosystem](http://postgrest.com/en/v0.4/intro.html#ecosystem).
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
@@ -35,12 +35,9 @@ Also try other tools in the PostgREST
|
|||||||
### Performance
|
### Performance
|
||||||
|
|
||||||
TLDR; subsecond response times for up to 2000 requests/sec on Heroku
|
TLDR; subsecond response times for up to 2000 requests/sec on Heroku
|
||||||
free tier. ([see the load
|
free tier. If you're used to servers written in interpreted languages
|
||||||
test](http://postgrest.com/admin/performance/#benchmarks))
|
(or named after precious gems), prepare to be pleasantly surprised by
|
||||||
|
PostgREST performance.
|
||||||
If you're used to servers written in interpreted languages (or named
|
|
||||||
after precious gems), prepare to be pleasantly surprised by PostgREST
|
|
||||||
performance.
|
|
||||||
|
|
||||||
Three factors contribute to the speed. First the server is written
|
Three factors contribute to the speed. First the server is written
|
||||||
in [Haskell](https://www.haskell.org/) using the
|
in [Haskell](https://www.haskell.org/) using the
|
||||||
@@ -63,25 +60,20 @@ by
|
|||||||
* Using the PostgreSQL binary protocol
|
* Using the PostgreSQL binary protocol
|
||||||
* Being stateless to allow horizontal scaling
|
* Being stateless to allow horizontal scaling
|
||||||
|
|
||||||
Ultimately the server (when load balanced) is constrained by database
|
|
||||||
performance. This may make it inappropriate for very large traffic
|
|
||||||
load. To learn more about scaling with Heroku and Amazon RDS see
|
|
||||||
the [performance guide](http://postgrest.com/admin/performance/).
|
|
||||||
|
|
||||||
Other optimizations are possible, and some are outlined in the
|
Other optimizations are possible, and some are outlined in the
|
||||||
[Future Features](#future-features).
|
[Future Features](#future-features).
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
PostgREST handles authentication (via [JSON Web
|
PostgREST [handles
|
||||||
Tokens](http://postgrest.com/admin/security/#json-web-tokens))
|
authentication](http://postgrest.com/en/v0.4/auth.html) (via JSON Web
|
||||||
and delegates authorization to the role information defined in the
|
Tokens) and delegates authorization to the role information defined in
|
||||||
database. This ensures there is a single declarative source of truth
|
the database. This ensures there is a single declarative source of truth
|
||||||
for security. When dealing with the database the server assumes
|
for security. When dealing with the database the server assumes the
|
||||||
the identity of the currently authenticated user, and for the
|
identity of the currently authenticated user, and for the duration of
|
||||||
duration of the connection cannot do anything the user themselves
|
the connection cannot do anything the user themselves couldn't. Other
|
||||||
couldn't. Other forms of authentication can be built on top
|
forms of authentication can be built on top of the JWT primitive. See
|
||||||
of the JWT primitive. See the docs for more information.
|
the docs for more information.
|
||||||
|
|
||||||
PostgreSQL 9.5 supports true [row-level
|
PostgreSQL 9.5 supports true [row-level
|
||||||
security](http://www.postgresql.org/docs/9.5/static/ddl-rowsecurity.html).
|
security](http://www.postgresql.org/docs/9.5/static/ddl-rowsecurity.html).
|
||||||
@@ -124,7 +116,7 @@ surprises, such as enforcing idempotent PUT requests, and
|
|||||||
|
|
||||||
See examples of [PostgreSQL
|
See examples of [PostgreSQL
|
||||||
constraints](http://www.tutorialspoint.com/postgresql/postgresql_constraints.htm)
|
constraints](http://www.tutorialspoint.com/postgresql/postgresql_constraints.htm)
|
||||||
and the [guide to routing](http://postgrest.com/api/reading/).
|
and the [API guide](http://postgrest.com/en/v0.4/api.html).
|
||||||
|
|
||||||
### Thanks
|
### Thanks
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"POSTGREST_VER": {
|
"POSTGREST_VER": {
|
||||||
"description": "Version of PostgREST to deploy",
|
"description": "Version of PostgREST to deploy",
|
||||||
"value": "0.3.2.0"
|
"value": "0.4.0.0"
|
||||||
},
|
},
|
||||||
"DB_NAME": {
|
"DB_NAME": {
|
||||||
"description": "Database name",
|
"description": "Database name",
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ name: postgrest
|
|||||||
description: Reads the schema of a PostgreSQL database and creates RESTful routes
|
description: Reads the schema of a PostgreSQL database and creates RESTful routes
|
||||||
for the tables and views, supporting all HTTP verbs that security
|
for the tables and views, supporting all HTTP verbs that security
|
||||||
permits.
|
permits.
|
||||||
version: 0.3.2.0
|
version: 0.4.0.0
|
||||||
synopsis: REST API for any Postgres database
|
synopsis: REST API for any Postgres database
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
|
|||||||
+1
-1
@@ -4,6 +4,6 @@ extra-deps:
|
|||||||
- hasql-pool-0.4.1
|
- hasql-pool-0.4.1
|
||||||
- hasql-transaction-0.5
|
- hasql-transaction-0.5
|
||||||
ghc-options:
|
ghc-options:
|
||||||
postgrest: -O2 -Werror -Wall -fwarn-identities
|
postgrest: -O2 -Werror -Wall -fwarn-identities -fno-warn-redundant-constraints
|
||||||
nix:
|
nix:
|
||||||
packages: [postgresql, zlib]
|
packages: [postgresql, zlib]
|
||||||
|
|||||||
Reference in New Issue
Block a user