I created a simple sample that shows some basic FireDAC functionality with MongoDB in C++ (Works with C++Builder or RAD Studio 10 Seattle)
This is similar to a one of the Object Pascal / Delphi MongoDB sample. It shows how you can query a MongoDB database using the new TFDMongoQuery component and display it in a grid. It also shows how to handle nested document objects (like Address) and arrays / DataSets (Address.Coords and Grades).
In addition to using the match property of the query, it also allows the specification of a sort and a projection. The projection is used to change which fields of the document you retrieve.
For more information on MongoDB, check out my MongoDB Skill Sprint and register for CodeRage X (Oct 13 – 15)
4 replies on “MongoDB FireDAC C++ Sample”
The dashed SQL logo is missleading. NoSQL means mostly today “Not Only SQL”, not “No SQL”. You can still run some SQL queries on NoSQL databases – e.g. our Open Source mORMot framework is able to translate most SQL SELECT queries into MongoDB (BSON) queries on the fly – see http://blog.synopse.info/post/2014/11/28/ODM-magic%3A-complex-queries-over-NoSQL-/-MongoDB
About NoSQL, it is worth reading the Martin Fowler introduction about NoSQL databases.
And the corresponding video. See http://blog.synopse.info/post/2014/02/28/Are-NoSQL-databases-ACID
I agree. Most people get hung up on the wrong part of NoSQL. I was just trying visual representation to get people’s attention. Those are some good resources. Thanks for sharing!
How would I connect to Mongo from within FMX android – I see FireDAC MongoDB connection is not supporting android ?
[…] If you missed my previous post I had a MongoDB FireDAC and C++Builder sample. […]