From 0b6cb15ea2d863d81f1934c78e556c3e2a1fe0ce Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 18 Dec 2013 23:32:18 +0100 Subject: [PATCH] Documentation: Lua functions ar not only for LSP but for all Lua environments --- docs/UserManual.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/UserManual.md b/docs/UserManual.md index 79b574b2..82055e56 100644 --- a/docs/UserManual.md +++ b/docs/UserManual.md @@ -381,11 +381,13 @@ content. Please refer to `struct mg_request_info` definition in [civetweb.h](https://github.com/sunsetbrew/civetweb/blob/master/include/civetweb.h) to see additional information on the elements of the `mg.request_info` object. -Civetweb also provides SQlite3 access through Lua. An example is given in +Civetweb also provides access to the [SQlite3 database](http://www.sqlite.org/) +through the [LuaSQLite3 interface](http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki) +in Lua. An example is given in [page.lp](https://github.com/sunsetbrew/civetweb/blob/master/test/page.lp). -Civetweb exports the following to the Lua server page: +Civetweb exports the following functions to Lua: mg.read() -- reads a chunk from POST data, returns it as a string mg.write(str) -- writes string to the client