nsf

Clone Tools
  • last updated 22 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix patch

Adding to Object.man: cget, configure, move, copy, ...

nsf.c: - fix case, where NsfDStringPrintf() failed (when print llength including \0 was 1 byte longer than print buffer) - make sure, that the list kept for the cached parameter is just built from unshared objects; otherwise Tcl append will abort

nx.tcl:

- new package "nx::volatile"

- don't define configure parameter "-volatile" per default;

use "package req nx::volatile" instead

- don't define per method "volatile" per default;

use "::nsf::method::require ::nx::Object volatile" instead

- get rid of -volatile in nx.tcl and serializer

- update/extend regression test

    • -0
    • +31
    /library/lib/nx-volatile.tcl
- fix case, where NsfDStringPrintf() failed (when print llength including \0 was 1 byte longer than print buffer)

- added mongo::cursor::aggregate

- added mongo::collection::stats - extended regression test

    • -2
    • +12
    /library/mongodb/tests/nsf-mongo.test
nx-mongo: - fixed suprising compiler message "alignment of array elements is greater than element size" when using e.g. "bson_iter_t i[1]" - some c-code cleanup - tested with mongodb-c-driver 0.92.3

Some additions to Object.man

Started working on an authoritative man page for nx::Object, still cleaning up and still tweaking the doctools markup

- mongodb's c-driver changed version number from 0.93.0 to 0.92.1; followed the change in README

- tested with mongodb-c-driver 0.93.0

- since mongoc_gridfs_get_files is supported since today by the mongo-c-driver, we do not need it private implementation any more. all dependencies on private header files are removed by now.

- adjust to newest version of mongo-c-driver - remove one dependency for private header file

- move close of the pseudo comment for syntax highlighter out of quoted block

xotcl2: - prevent strange error messages, when "abstract" is called with quotes in the argument list.

- represent BSON_TYPE_REGEX as pairs (regex + options) in the Tcl representation to preserve regular expression options - update to newest version of mongo-c-driver and libbson from github

nx-mongo: - optional support for mongodb connection pools (compile time macro USE_CLIENT_POOL controls this, per default, this is on) - allow to pass "-metadata" to gridfile::create to ease metadata attachment to gridfiles - some conveniance improvements in nx-mongo.tcl (ability to ignore attributes in "bson encode", ability to unset attributes in gridfs, ...) - bump version numbers of nsfmongo to 0.3 and nx-monogo to 0.5

- minor cleanup

nsf.c: - let [current methodpath] return full path (similar to -path option in "info methods" - handle collateral damage in regression test due to changed result of "current methodpath"

- add traits.test to the regression tests

nx::traits: - handle ensemble methods correctly (use full method path for resolution) - add new regression tests for traits

nsf.c: - fix small memory leak in multiple inheritance code. - all regression tests reun cleanly with --enable-memcount=yes

- raise an error, when an ensemble methods redefined a plain method

- add incr/decr refcount for callInfoObj in unknown handling - deactivated suspicious assert() in NsfMethodNamePath()

Merge branch 'master' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/nsf

nsf.c: - change name of enumeratorConverterEntry to Nsf_EnumeratorConverterEntry, move it with NSF_ARG_* flags to tcl.h to make it available in derived modules using the converter - Added editor hints for a more uniform appearance

    • -25
    • +6
    /library/xotcl/tests/slottest.xotcl
  1. … 30 more files in changeset.
- change configure flags from --with-mongodb to --with-mongoc=... and --with-bson

nx-monogo: - Updated the mongo-c-driver and libbson to the actual tip version from github (this is a significant change, since 10gen essentially changed the officially supported c-driver of MongoDB) - mongo-c-driver was more or less new-implementation, since strucure and names changed in the mongo-c-driver substantially, serveral functions were added, several were dropped. The new interface supports now e.g. mongo URIs, and should be faster (by using collection objects instead of connection handles) - Although the low-level nsf interface changed significantly, the high level (nx level) interface remained unaffected. - Configure has now --with-mongoc=... and --with-bson instead of --with-mongodb - New commands: mongo::collection::open /mongoConn/ /dbName/ /collectionName/ mongo::collection::close /collection/ mongo::gridfs::store_string /content/ /name/ /contentType/ - Make use of the new collection handle mongo::count /mongoConn/ /ns/ ... -> mongo::collection::count /collection/ ... mongo::index /mongoConn/ /ns/ ... -> mongo::collection::index /collection/ ... mongo::insert /mongoConn/ /ns/ ... -> mongo::collection::insert /collection/ ... mongo::query /mongoConn/ /ns/ ... -> mongo::collection::query /collection/ ... mongo::remove /mongoConn/ /ns/ ... -> mongo::collection::delete /collection/ ... mongo::update /mongoConn/ /ns/ ... -> mongo::collection::update /collection/ ... mongo::cursor::find /mongoConn/ /ns/ ... -> mongo::cursor::find /collection/ ... - nsf::mongo::connect receives now a mongoc_uri https://github.com/mongodb/mongo-c-driver/blob/master/doc/mongoc_uri.txt - The gridfs interface allows now to store multiple revisions of a file - The gridfs interface allows now upload files from a string - The gridfs interface allows to refer to files by other attributes than just the filename (e.g. the mongo id). - Modified/new gridfile functions mongo::gridfile::create ?-source file|string? /gridfs/ /value/ /name/ /contentType/ mongo::gridfile::delete /gridfs/ /query/ mongo::gridfile::open /gridfs/ /query/ - Updated README - Updated regression test - Added editor hints for a more uniform appearance

    • -269
    • +326
    /library/mongodb/mongoAPI.h
    • -458
    • +652
    /library/mongodb/nsfmongo.c
    • -50
    • +168
    /library/mongodb/nx-mongo.tcl
    • -24
    • +41
    /library/mongodb/tests/nsf-gridfs.test
    • -29
    • +70
    /library/mongodb/tests/nsf-mongo.test
    • -3
    • +20
    /library/mongodb/tests/nx-mongo.test
    • -1
    • +9
    /library/mongodb/tests/nx-reference-many.test
    • -1
    • +9
    /library/mongodb/tests/nx-reference-one.test
    • -2
    • +7
    /library/mongodb/tests/nx-serialize.test
- nx.tcl: Throw error exceptions using "return -code error", to exclude the unevaluated error cmd statement from the trace message

Adding a todo