Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added 'count' method to the connection handle class
* Added 'remove' method to the connection handle class * Added 'update' method to the connection handle class * Added 'rows' method to the cursor handle class * Added more type checking for some methods * Cleaned up Makefile git-svn-id: http://luamongo.googlecode.com/svn/trunk@3 17e306f6-9439-11de-a13a-71b910e68cc8
- Loading branch information
nrich@ii.net
committed
Apr 17, 2010
1 parent
edd74e6
commit c01d251
Showing
4 changed files
with
161 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
#define LUAMONGO_CONNECTION "mongo.Connection" | ||
#define LUAMONGO_CURSOR "mongo.Cursor" | ||
#define LUAMONGO_CONNECTION "mongo.Connection" | ||
#define LUAMONGO_CURSOR "mongo.Cursor" | ||
|
||
#define LUAMONGO_ERR_CONNECTION_FAILED "Connection failed: %s" | ||
#define LUAMONGO_ERR_QUERY_FAILED "Query failed: %s" | ||
#define LUAMONGO_ERR_INSERT_FAILED "Insert failed: %s" | ||
#define LUAMONGO_ERR_CONNECT_FAILED "Connection to %s failed: %s" | ||
#define LUAMONGO_UNSUPPORTED_BSON_TYPE "Unsupported BSON type" | ||
#define LUAMONGO_ERR_CONNECTION_FAILED "Connection failed: %s" | ||
#define LUAMONGO_ERR_QUERY_FAILED "Query failed: %s" | ||
#define LUAMONGO_ERR_INSERT_FAILED "Insert failed: %s" | ||
#define LUAMONGO_ERR_CONNECT_FAILED "Connection to %s failed: %s" | ||
#define LUAMONGO_ERR_COUNT_FAILED "Count failed: %s" | ||
#define LUAMONGO_ERR_REMOVE_FAILED "Remove failed: %s" | ||
#define LUAMONGO_ERR_UPDATE_FAILED "Update failed: %s" | ||
#define LUAMONGO_UNSUPPORTED_BSON_TYPE "Unsupported BSON type" | ||
#define LUAMONGO_UNSUPPORTED_LUA_TYPE "Unsupported Lua type `%s'" | ||
#define LUAMONGO_REQUIRES_JSON_OR_TABLE "JSON string or Lua table required" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters