[yoy - Why-O-Why]yoy - “Why-O-Why”

» frame | home browse filter search | refresh | log on

  printed woensdag 22 mei 2013 21:05:07 from www.yoy.be

information item
Comment...
Add another
Add child
Edit
Move
Delete
Add token
Add reference

TMongoWire

Delphi MongoDB Driver

A Delphi driver to access a mongoDB server.
It maps variables onto Delphi variables of type OleVariant, which resembles the loose typing of JavaScript a lot.
There are two main units and three main object to enable access to a mongo DB server:

bsonDoc.pas
  TBSONDocument = class(TInterfacedObject, IBSONDocument, IPersistStream)

  function BSON:IBSONDocument; overload;
  function BSON(x:array of OleVariant):IBSONDocument; overload;

mongoWire.pas
  TMongoWire=class(TObject)

  TMongoWireQuery=class(TBSONDocumentsEnumerator)

Additional tools

bsonUtils.pas
  function BsonToJson(Doc:IBSONDocument):WideString;
    Converts a BSON document into a JSON string.
  function JsonToBson(jsonData:WideString):IBSONDocument;
    Converts a JSON string into a BSON document.
  procedure JsonIntoBson(jsonData:WideString;doc:IBSONDocument); overload;
    Parses a JSON string and adds any keys to an existing BSON document, overwriting the value if a key already exists.
  procedure JsonIntoBson(jsonData:WideString;doc:IBSONDocument;var EndIndex:integer); overload;
    Parses only the first JSON object from a string into an existing BSON document, and returns the index into the string where the JSON object ends.
    Use this method to iterate over a list of JSON strings. (See also IBSONDocument.Clear)

location: freeware
url: https://github.com/stijnsanders/TMongoWire
created: 2/12/2010 10:05:35 « modified: 24/06/2012 21:39:02 (diff) weight: 0

children, tokens, references comments (5)

delphi up down edit   del   created: 2/12/2010 10:06:20 « modified: 2/12/2010 10:06:20 weight: 0
(friendly-url) up down edit   del   created: 14/12/2010 15:23:21 « modified: 14/12/2010 15:23:21 weight: 0
(TMongoWire)

see also -- JSON edit   del   created: 24/06/2012 21:40:28 « modified: 24/06/2012 21:40:28 weight: 0
see also -- BSON edit   del   created: 24/06/2012 21:40:40 « modified: 24/06/2012 21:40:40 weight: 0
see also -- mongoDB edit   del   created: 24/06/2012 21:42:15 « modified: 24/06/2012 21:42:15 weight: 0

>=, <= operators coding   created: 2/02/2012 14:02:01 « modified: 2/02/2012 21:31:28 weight: -100
BSON and arrays   created: 8/07/2012 7:50:12 « modified: 8/07/2012 7:50:12 weight: -100