From cecafdedc21cc1516930efbbae1c52236f967d94 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 20 Mar 2013 18:27:03 +0700 Subject: [PATCH] working on luadoc --- luaejdb/doc/index.html | 662 ++++++++++++++++++++++++++++++++++++++++++++++++- luaejdb/ejdb.luadoc | 214 +++++++++++++++- luaejdb/test/t1.lua | 2 +- 3 files changed, 866 insertions(+), 12 deletions(-) diff --git a/luaejdb/doc/index.html b/luaejdb/doc/index.html index fb6e468..b21654f 100644 --- a/luaejdb/doc/index.html +++ b/luaejdb/doc/index.html @@ -50,6 +50,72 @@

+

Usage:

+

Functions

@@ -139,6 +205,86 @@ Convenient count(*) operation. + DB:sync (cname) + Synchronize EJDB database with storage. + + + DB:getDBMeta () + Get table object describes a database structure and its collections. + + + DB:beginTransaction (cname) + Begin collection transaction. + + + DB:commitTransaction (cname) + Commit collection transaction. + + + DB:rollbackTransaction (cname) + Rollback collection transaction. + + + DB:getTransactionStatus (cname) + Get collection transaction status. + + + DB:dropIndexes (cname, fpath) + DROP indexes of all types for JSON field path. + + + DB:optimizeIndexes (cname, fpath) + OPTIMIZE indexes of all types for JSON field path. + + + DB:ensureStringIndex (cname, fpath) + Ensure index presence of String type for JSON field path. + + + DB:rebuildStringIndex (cname, fpath) + Rebuild index of String type for JSON field path. + + + DB:dropStringIndex (cname, fpath) + Drop index of String type for JSON field path. + + + DB:ensureIStringIndex (cname, fpath) + Ensure case insensitive String index for JSON field path. + + + DB:rebuildIStringIndex (cname, fpath) + Rebuild case insensitive String index for JSON field path. + + + DB:dropIStringIndex (cname, fpath) + Drop case insensitive String index for JSON field path. + + + DB:ensureNumberIndex (cname, fpath) + Ensure index presence of Number type for JSON field path. + + + DB:rebuildNumberIndex (cname, fpath) + Rebuild index of Number type for JSON field path. + + + DB:dropNumberIndex (cname, fpath) + Drop index of Number type for JSON field path. + + + DB:ensureArrayIndex (cname, fpath) + Ensure index presence of Array type for JSON field path. + + + DB:rebuildArrayIndex (cname, fpath) + Rebuild index of Array type for JSON field path. + + + DB:rebuildArrayIndex (cname, fpath) + Drop index of Array type for JSON field path. + + RS:object (i) Returns result set lua table object at specified position i @@ -151,6 +297,10 @@ Length of result set. + Q:KV (key, value) + Adds field into current JSON object. + + Q:F (fname) Set current field for the next operation during query building. @@ -662,7 +812,7 @@