example-nx-mongo.tcl

Clone Tools
  • last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
mongodb: - integrated configuration of mongodb into toplevel configfile option: --with-mongodb=MONGO_INCLUDE_DIR,MONGO_LIB_DIR - added regression test files for mongodb support (lowlevel (tcl-only) and highlevel (nx based oo support)) - integrated mongodb-testfiles with "make test" - reduced verbosity of nx-mongo.tcl (added verbosty variable)

  1. … 21 more files in changeset.
MongoDB - added "nx::mongo::db drop collection /name/" - returning status from "nx::mongo::db remove" as success (0 or 1)

  1. … 5 more files in changeset.
- adjust to object interface - reduce verbosity - add error messages for slot lookup failures

  1. … 1 more file in changeset.
Updated MongoDB interface - upgraded to c-driver 0.7.1 - tested with MongoDB 2.4.4-pre - new commands: * mongo::run * mongo::cursor::find * mongo::cursor::next * mongo::cursor::close - adapted interface for c-driver 0.7.1 (e.g. new optional name for mongo::index

  1. … 7 more files in changeset.
- nx.tcl * renamed "attribute" to "property" * renamed "defaultAttributeCallProtection" to "defaultPropertyCallProtection" * renamed "nx::Attribute" to ""nx::VariableSlot" * renamed "BootStrapAttributeSlot" to "BootStrapVariableSlot" * renamed "createBootstrapAttributeSlots" to "createBootstrapVariableSlots" * removed method attributes * implemented old attributes definition in xotcl2 as method "parameter"

  1. … 32 more files in changeset.
- library/mongodb: * use type int32 * updated to new nx/nsf interfaces * updated for mongo-c-driver post 0.3 (supporting result MONGO_OK for mongo_cursor_next) * factored out "mongo cond" from "mongo query"

  1. … 5 more files in changeset.
- nx-mango.tcl: * support for unique indices * support for query operators "in" and "all"

  1. … 4 more files in changeset.
- nx::mongo: * implemented type "reference" similar to "embedded" * all referenced objects are for the time being auto-dereferenced * new method "show" for mongo mapped classes * added two new example files example-nx-reference-many.tcl and example-nx-reference-one.tcl

  1. … 4 more files in changeset.
- nx::mongo: * added handling of bson types for timestamps and dates * provide setup based on mongo_db, mongo_collection and mongo_ns

  1. … 5 more files in changeset.
- nx::mongo: * first step towards handling embedded objects * one more example script: example-nx-bi.tcl

  1. … 4 more files in changeset.
- improve documentation

- nx::mongo: Initial commit of the experimental mongoDB interface for nx

    • -0
    • +90
    ./example-nx-mongo.tcl
  1. … 13 more files in changeset.