Skip to content

Commit 3ad10a3

Browse files
author
Benjamin Maurer
committed
Minor changes.
1 parent 6f10c2d commit 3ad10a3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

frameworks/Haskell/postgrest/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* [DB](src/db.sql)
88
* [QUERY](src/query.sql)
99
* [CACHED QUERY] Not Implemented
10-
* [UPDATE] Not Implemented
10+
* [UPDATE](src/update.sql)
1111
* [FORTUNES](src/fortunes.sql)
1212

1313
## Important Libraries
@@ -31,14 +31,21 @@ http://localhost:3000/rpc/db
3131

3232
http://localhost:3000/rpc/query?queries=
3333

34-
### CACHED QUERY Not Implemented
34+
### CACHED QUERY - Not Implemented
3535

3636
http://localhost:8080/cached_query?queries=
3737

38-
### UPDATE Not Implemented
38+
### UPDATE - Not Working
3939

4040
http://localhost:3000/rpc/updates?queries=
4141

42+
Technically, this is implemented (maybe not correctly though).
43+
However, the benchmark issues this as a GET request.
44+
PostgREST sets the transaction to READ ONLY for GET requests,
45+
as they are supposed to be idempotent.
46+
Hence this results in an error. Calling the endpoint with POST
47+
works though.
48+
4249
### FORTUNES
4350

4451
http://localhost:3000/rpc/fortunes.html

frameworks/Haskell/postgrest/src/plaintext.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
create domain "text/plain" text;
1+
create domain "text/plain" as text;
22

33
create function plaintext() returns "text/plain" as $$
44
SELECT 'Hello, World!';

0 commit comments

Comments
 (0)