webmcp

diff libraries/mondelefant/mondelefant_native.autodoc.lua @ 416:046927075270

Proxy table to directly access column-values of a database row (e.g. if document_column is set or for reserved method names)
author jbe
date Sat Jan 09 19:29:36 2016 +0100 (2016-01-09)
parents b42a6c9cc322
children 03f4f905a41a
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_native.autodoc.lua	Sat Jan 09 17:32:30 2016 +0100
     1.2 +++ b/libraries/mondelefant/mondelefant_native.autodoc.lua	Sat Jan 09 19:29:36 2016 +0100
     1.3 @@ -331,3 +331,15 @@
     1.4  -- static int mondelefant_class_get_reference(lua_State *L)
     1.5  --//--
     1.6  
     1.7 +
     1.8 +--[[--
     1.9 +<db_object>.columns  -- proxy table mapping column names to their values
    1.10 +
    1.11 +This attribute can be used to access column values directly (helpful if <db_class>:document_column is set). Currently pairs(...) and ipairs(...) are not implemented on this proxy table.
    1.12 +
    1.13 +--]]--
    1.14 +-- implemented in mondelefant_native.c as
    1.15 +-- static const struct luaL_Reg mondelefant_columns_mt_functions[]
    1.16 +--
    1.17 +--//--
    1.18 +

Impressum / About Us