aboutsummaryrefslogtreecommitdiff
path: root/doc/ex-meta1.texi
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-06-30 00:36:06 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-06-30 00:38:17 +0300
commitc0992a1981165a975148b2a334f2556c3efb6fdf (patch)
tree6586cf46eabb4a48188e45179782c2176b5a1839 /doc/ex-meta1.texi
parent2f831a4b8b76074284c9f8321ad1f8249664834e (diff)
downloadsmap-c0992a1981165a975148b2a334f2556c3efb6fdf.tar.gz
smap-c0992a1981165a975148b2a334f2556c3efb6fdf.tar.bz2
Improve SQL interface.
* modules/mysql/mysql.c: Always open database, if enough data are given to do so. Remove spurious options defaultdb and open. * modules/postgres/postgres.c: Likewise. * doc/ex-meta1.texi: Update.
Diffstat (limited to 'doc/ex-meta1.texi')
-rw-r--r--doc/ex-meta1.texi10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/ex-meta1.texi b/doc/ex-meta1.texi
index d74b49c..a62b4be 100644
--- a/doc/ex-meta1.texi
+++ b/doc/ex-meta1.texi
@@ -16,13 +16,12 @@ shared between the two smap databases. Thus, the module
initialization in @file{smapd.conf} looks like:
@example
-module mysql mysql open config-group=smap
+module mysql mysql config-group=smap
@end example
-The @samp{open} parameter instructs the module to open the requested
-databases. The @samp{config-group} parameter refers to a group
-name in the default @file{/etc/my.cnf} file that contains information
-about the @acronym{MySQL} database and credentials for accessing it.
+The @samp{config-group} parameter refers to a group name in the
+default @file{/etc/my.cnf} file that contains information about the
+@acronym{MySQL} database and credentials for accessing it.
The following is a sample snippet from @file{/etc/my.cnf}:
@example
@@ -61,7 +60,6 @@ The smap database is defined as follows:
@example
@group
database userdb mysql \
- defaultdb
query="SELECT user FROM userdb WHERE user='$key'"
positive-reply=OK
@end group

Return to:

Send suggestions and report system problems to the System administrator.