summaryrefslogtreecommitdiff
path: root/doc/documentation.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/documentation.txt')
-rw-r--r--doc/documentation.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/documentation.txt b/doc/documentation.txt
index 7756676..2eef013 100644
--- a/doc/documentation.txt
+++ b/doc/documentation.txt
@@ -143,6 +143,17 @@ Mit dieser Variante, lassen sich hingegen nur +SELECT+-Anfragen stellen.
Andere wichtige Anfragen, wie +UPDATE+, +DELETE+, +CREATE+ und +ALTER+ koennten
dann nicht innerhalb mit der SQLBox erprobt werden.
+Dazu wird mit einem priviligierten Account ein Nutzer angelegt, der für die
+Datenbank nur Leserechte, also für +SELECT+, besitzt:
+
+[source,sql]
+----
+sqlbox=# create user sqlbox_read with password 'XXXXXX';
+CREATE ROLE
+sqlbox=# GRANT SELECT ON ALL TABLES IN SCHEMA public TO sqlbox_read;
+GRANT
+----
+
== Literatur
* Niels Weber, Diplomarbeit