webmcp

diff libraries/mondelefant/mondelefant_native.autodoc.lua @ 40:ed00b972f40e

Allow mondelefant.connect to be called with an explicit "conninfo" string
author jbe
date Sat Oct 16 17:49:11 2010 +0200 (2010-10-16)
parents 3a6fe8663b26
children a533ab6d7337
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_native.autodoc.lua	Sat Oct 16 17:43:28 2010 +0200
     1.2 +++ b/libraries/mondelefant/mondelefant_native.autodoc.lua	Sat Oct 16 17:49:11 2010 +0200
     1.3 @@ -5,6 +5,7 @@
     1.4  errcode =                             -- error code
     1.5  mondelefant.connect{
     1.6    engine          = "postgresql",     -- no other engine is supported
     1.7 +  conninfo        = conninfo,         -- string passed directly to PostgreSQL's libpq
     1.8    host            = host,             -- hostname or directory with leading slash where Unix-domain socket resides
     1.9    hostaddr        = hostaddr,         -- IPv4, or IPv6 address if supported
    1.10    port            = port,             -- TCP port or socket file name extension
    1.11 @@ -15,7 +16,7 @@
    1.12    ...
    1.13  }  
    1.14  
    1.15 -Opens a new database connection and returns a handle for that connection.
    1.16 +Opens a new database connection and returns a handle for that connection. You may chose to specify host, port, dbname, etc. as seperated arguments, or to use a "conninfo" string, which is directly passed to PostgreSQL's libpq.
    1.17  
    1.18  --]]--
    1.19  -- implemented in mondelefant_native.c as

Impressum / About Us